aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/staff/models
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2019-11-15 10:11:45 +0100
committerGravatar GitHub <[email protected]>2019-11-15 10:11:45 +0100
commit0e8f623d15f043f1c8712366bdaf83153a619bca (patch)
tree611c4f111855788c00a5e3ef6c909d9021b29c5c /pydis_site/apps/staff/models
parentDelete useless migration file (diff)
parentAdd pipenv run start command (#308) (diff)
Merge branch 'master' into bot#549-show-attachments-staff
Diffstat (limited to 'pydis_site/apps/staff/models')
-rw-r--r--pydis_site/apps/staff/models/role_mapping.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/apps/staff/models/role_mapping.py b/pydis_site/apps/staff/models/role_mapping.py
index 10c09cf1..8a1fac2e 100644
--- a/pydis_site/apps/staff/models/role_mapping.py
+++ b/pydis_site/apps/staff/models/role_mapping.py
@@ -21,6 +21,11 @@ class RoleMapping(models.Model):
unique=True, # Unique in order to simplify group assignment logic
)
+ is_staff = models.BooleanField(
+ help_text="Whether this role mapping relates to a Django staff group",
+ default=False
+ )
+
def __str__(self):
"""Returns the mapping, for display purposes."""
return f"@{self.role.name} -> {self.group.name}"