Fix: wrong model for initail site data

This commit is contained in:
Aroy-Art 2025-04-02 13:11:48 +02:00
parent a49c6381d6
commit 0e4cb1092c
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -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)