Set permissions for order views

This commit is contained in:
Oliver Walters
2020-10-06 19:46:53 +11:00
parent 606c62078f
commit 1c97aaf87a
4 changed files with 58 additions and 9 deletions
+4
View File
@@ -36,6 +36,10 @@ class RuleSet(models.Model):
choice[0] for choice in RULESET_CHOICES
]
RULESET_PERMISSIONS = [
'view', 'add', 'change', 'delete',
]
RULESET_MODELS = {
'admin': [
'auth_group',