2022-12-11 23:20:28 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class JournalConfig(AppConfig):
|
2022-12-29 23:57:02 -05:00
|
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
|
|
name = "journal"
|
2023-06-02 21:54:48 -04:00
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
# load key modules in proper order, make sure class inject and signal works as expected
|
2023-06-26 00:16:14 -04:00
|
|
|
from catalog.models import Indexer
|
|
|
|
|
2025-01-19 16:04:22 -05:00
|
|
|
from . import apis # noqa
|
2023-08-10 11:27:31 -04:00
|
|
|
from .models import Rating, Tag
|
|
|
|
|
2023-06-26 00:16:14 -04:00
|
|
|
Indexer.register_list_model(Tag)
|
|
|
|
Indexer.register_piece_model(Rating)
|