#15915: Permission codename duplication is not handled well
--------------------------------------+------------------------------
Reporter: valyagolev | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: contrib.auth
Version: 1.3 | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
--------------------------------------+------------------------------
Comment (by valyagolev):
The case in which we had this error was like this:
We are using row-level permissions, and we needed several: "edit_page",
"view_page", "delete_page", "act_as_page" etc. So we have just written
them all down in "class Meta:", and got the error.
If Django will restrict re-stating permissions, we have two choices:
* Either delete/comment out "edit" and "delete" permissions, and try to
remember or make notes about them.
* add our prefix to permissions, which will lead to duplicating
permissions: "edit_page" and "ourproject_edit_page"
I don't like either of them.
--
Ticket URL: <http://code.djangoproject.com/ticket/15915#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.