lib.itmens/catalog/apps.py

17 lines
518 B
Python
Raw Normal View History

from django.apps import AppConfig
class CatalogConfig(AppConfig):
2022-12-29 23:57:02 -05:00
default_auto_field = "django.db.models.BigAutoField"
name = "catalog"
2022-12-15 17:29:35 -05:00
def ready(self):
# load key modules in proper order, make sure class inject and signal works as expected
from catalog import models
from catalog import sites
from journal import models as journal_models
2022-12-31 17:16:47 -05:00
from catalog.models import init_catalog_search_models
2023-02-15 15:45:57 -05:00
from catalog import api
2022-12-31 17:16:47 -05:00
init_catalog_search_models()