aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-10-03 20:52:55 +0100
committerGravatar Gareth Coles <[email protected]>2019-10-03 20:52:55 +0100
commit646dc95ac2e21060ae922bf2fb7c328736dcb143 (patch)
tree52285f1209e315b1fc51f35c86d305c5021437f9 /pydis_site/apps
parentAdd model to map Discord roles to Django permissions groups (diff)
Remove app_label from role mapping model
Turns out, setting this *does* move the model to a different category under the admin - but it also reparents it to the referenced app, so the migrations are created under that app instead. Nasty.
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/staff/models/role_mapping.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/pydis_site/apps/staff/models/role_mapping.py b/pydis_site/apps/staff/models/role_mapping.py
index 21825aea..5c728283 100644
--- a/pydis_site/apps/staff/models/role_mapping.py
+++ b/pydis_site/apps/staff/models/role_mapping.py
@@ -22,6 +22,3 @@ class RoleMapping(models.Model):
def __str__(self):
"""Returns the mapping, for display purposes."""
return f"@{self.role.name} -> {self.group.name}"
-
- class Meta:
- app_label = 'auth'