feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.

This commit is contained in:
pacnpal
2025-12-28 17:32:53 -05:00
parent aa56c46c27
commit c95f99ca10
452 changed files with 7948 additions and 6073 deletions

View File

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