1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/peeringdb_server/apps.py
Matt Griswold 1addb7aae3 fix signals not being imported (#1037)
* fix signals not being imported

* move utility funciton out of signals
remove signals import from migrations

* note for signals import to be not removed

* better explanation

* fix user auto verify test

Co-authored-by: Stefan Pratter <stefan@20c.com>
2021-08-26 13:23:33 -05:00

14 lines
444 B
Python

from django.apps import AppConfig
class PeeringDBServerAppConfig(AppConfig):
name = "peeringdb_server"
verbose_name = "PeeringDB"
default_auto_field = "django.db.models.AutoField"
def ready(self):
# do not remove this, its the only place signals.py
# gets imported, and removing it will break things
# like verification queue and org usergroup creation
import peeringdb_server.signals # noqa