Fix: wrong model for initail site data
This commit is contained in:
parent
a49c6381d6
commit
0e4cb1092c
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ class ArchiveConfig(AppConfig):
|
|||
|
||||
@receiver(post_migrate)
|
||||
def insert_defualt_data(sender, **kwargs):
|
||||
from apps.archive.models import CategoryModel
|
||||
from apps.archive.models import SourceSiteModel
|
||||
|
||||
categories = {
|
||||
"furaffinity": "FurAffinity",
|
||||
|
@ -21,4 +21,4 @@ def insert_defualt_data(sender, **kwargs):
|
|||
|
||||
if sender.name == ArchiveConfig.name:
|
||||
for key, value in categories.items():
|
||||
CategoryModel.objects.get_or_create(slug=key, name=value)
|
||||
SourceSiteModel.objects.get_or_create(slug=key, name=value)
|
||||
|
|
Loading…
Add table
Reference in a new issue