mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-30 08:27:00 -05:00
feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.
This commit is contained in:
@@ -2,7 +2,6 @@ import logging
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -11,8 +10,8 @@ class ParksConfig(AppConfig):
|
||||
name = "apps.parks"
|
||||
|
||||
def ready(self):
|
||||
import apps.parks.signals # noqa: F401 - Register signals
|
||||
import apps.parks.choices # noqa: F401 - Register choices
|
||||
import apps.parks.signals # noqa: F401 - Register signals
|
||||
|
||||
self._apply_state_machines()
|
||||
self._register_callbacks()
|
||||
@@ -29,10 +28,9 @@ class ParksConfig(AppConfig):
|
||||
|
||||
def _register_callbacks(self):
|
||||
"""Register FSM transition callbacks for park models."""
|
||||
from apps.core.state_machine.registry import register_callback
|
||||
from apps.core.state_machine.callbacks.cache import (
|
||||
ParkCacheInvalidation,
|
||||
APICacheInvalidation,
|
||||
ParkCacheInvalidation,
|
||||
)
|
||||
from apps.core.state_machine.callbacks.notifications import (
|
||||
StatusChangeNotification,
|
||||
@@ -40,6 +38,7 @@ class ParksConfig(AppConfig):
|
||||
from apps.core.state_machine.callbacks.related_updates import (
|
||||
SearchTextUpdateCallback,
|
||||
)
|
||||
from apps.core.state_machine.registry import register_callback
|
||||
from apps.parks.models import Park
|
||||
|
||||
# Cache invalidation for all park status changes
|
||||
|
||||
Reference in New Issue
Block a user