Closed kmmbvnr closed 5 months ago
It seems debatable design decision. One of the solution withot code modification, could be adding custom persiions to a School class
https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-permissions
class School(models.Model):
...
class Meta:
permissions = [
("add_homework", "Can add school homework"),
("add_notification", "Can create school notifications"),
]
Original issue: https://github.com/django-guardian/django-guardian/issues/797