diff options
author | 2021-11-26 21:15:42 +0100 | |
---|---|---|
committer | 2021-11-26 21:15:42 +0100 | |
commit | 053d43e4cecdf60fbd11b4bccac6dbeb28e834d5 (patch) | |
tree | 358f03d4735a91391272070c9eb27c60318be70c /pydis_site/apps/api/apps.py | |
parent | Merge pull request #619 from hedyhli/patch-1 (diff) | |
parent | Patch signals to use post_delete, instead of pre_delete (diff) |
Merge pull request #572 from D0rs4n/pr/deleterolesignal
Create a signal to unassign roles from user when the role is deleted
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 |