You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… format that django uses when creating permissions. Added an initial mirgration that is a data migration to update previously created codename can_view permissions with codename view_[model]. This appears to resolve the issue django-district#1
the permission codename is created as "can_view" instead of "view_xxx" where xxx is the object name.
See how django creates the permission here:
https://github.com/django/django/blob/master/django/contrib/auth/management/__init__.py#L18
The current method of simply having the codename as "can_view" makes using the codename for has_perms unusable.
This should be change to follow the 'django way' of creating permission codenames.
Also need to consider how to update existing codenames.
Example:
The text was updated successfully, but these errors were encountered: