#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 carljm):
Replying to [comment:3 valyagolev]:
> But if you add two permissions with same codename and description,
everything will be fine thanks to set(). Isn't inconsistent a little bit?
Actually, I just looked at the code, and this is not true - your analysis
in the ticket description isn't quite right. searched_perms is not a set,
it's a list. So it doesn't matter whether the description (name) is the
same or not; both perms will appear in the list and the IntegrityError
will be raised either way if two perms have the same codename.
--
Ticket URL: <http://code.djangoproject.com/ticket/15915#comment:6>
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.