Implementation of global permissions
Right now, there are two ways of creating Permissions, either through a Model's Meta class, or using the Permission.objects.create method. The problem is, both of this ways require having the permission attached to a model, even when sometimes it does not really make sense. There are ways to work around this, of course, such as creating a dummy model just to hold permissions that don't really fit anywhere or overriding the default User model and fitting them there. Possible solutions I can think of are either removing the mandatory ContentType specification on the Permission model or providing a 'global' ContentType.
Change History
(6)
Triage Stage: |
Unreviewed → Accepted
|
Version: |
1.8 → master
|
Cc: |
Mariusz Felisiak added
|
Patch needs improvement: |
set
|
Permissions were designed for the admin. It shows. I agree that it's an unfortunate design and we should try to do better. I've faced this issue repeatedly myself. In applications, not every concept is built upon a Django model!