Hello, I have a Django model where there is multiple Districts that has multiple Schools, there would permisions as such, SuperUser, DistrictAdmin(district id), DistrictMember(district id), SchoolAdmin(school id), SchoolEditor(school id), SchoolViewer(school id). I am trying to make these kind of permisions per school and per district in the model. I am very new, and I think my only solution would be to use another database table to check permissions, and to manage with a crud. Please let me know if there is anything I can do, or do differently. I would also like that when a model is created through Django admin, that it creates the custom permissions, every time a new entity, school or district, is created.
#Permissions with model entity
3 messages · Page 1 of 1 (latest)