lib.itmens/catalog/apps.py

18 lines
575 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
2023-06-18 23:13:30 -04:00
from catalog.models import init_catalog_search_models, init_catalog_audit_log
2023-02-15 15:45:57 -05:00
from catalog import api
2022-12-31 17:16:47 -05:00
init_catalog_search_models()
2023-06-18 23:13:30 -04:00
init_catalog_audit_log()