2023-01-24 21:21:26 -05:00
|
|
|
from django.apps import AppConfig
|
2023-11-14 12:51:33 -05:00
|
|
|
from django.db.models.signals import post_migrate
|
|
|
|
|
|
|
|
|
|
|
|
def post_migrate_callback(sender, **kwargs):
|
|
|
|
from .tasks.scrapehidevents import schedule_tasks
|
|
|
|
|
|
|
|
schedule_tasks()
|
2023-01-24 21:21:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
class DoorControlConfig(AppConfig):
|
|
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
|
|
name = "doorcontrol"
|
|
|
|
verbose_name = "Door Control"
|
2023-11-08 12:34:11 -05:00
|
|
|
|
|
|
|
def ready(self):
|
2023-11-14 12:51:33 -05:00
|
|
|
post_migrate.connect(post_migrate_callback, sender=self)
|