diff options
author | 2021-12-13 11:14:16 +0530 | |
---|---|---|
committer | 2021-12-13 11:14:16 +0530 | |
commit | 4693de033391977d925e8af2bd956202d6f81d11 (patch) | |
tree | 722fe0e9771c64965d89d11db603a99a64db231b /pydis_site/apps/api/apps.py | |
parent | Remove get_queryset() and add new class variable . (diff) | |
parent | Merge pull request #633 from python-discord/dependabot/pip/django-3.1.14 (diff) |
Merge branch 'main' into otn_softdel
Diffstat (limited to 'pydis_site/apps/api/apps.py')
-rw-r--r-- | pydis_site/apps/api/apps.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pydis_site/apps/api/apps.py b/pydis_site/apps/api/apps.py index 76810b2e..18eda9e3 100644 --- a/pydis_site/apps/api/apps.py +++ b/pydis_site/apps/api/apps.py @@ -4,4 +4,12 @@ from django.apps import AppConfig class ApiConfig(AppConfig): """Django AppConfig for the API app.""" - name = 'api' + name = 'pydis_site.apps.api' + + def ready(self) -> None: + """ + Gets called as soon as the registry is fully populated. + + https://docs.djangoproject.com/en/3.2/ref/applications/#django.apps.AppConfig.ready + """ + import pydis_site.apps.api.signals # noqa: F401 |