#28140: Add convenience manager method to `Permission`s
--------------------------------+-----------------------------------------
     Reporter:  Flavio Curella  |                    Owner:  nobody
         Type:  New feature     |                   Status:  new
    Component:  contrib.auth    |                  Version:  1.11
     Severity:  Normal          |               Resolution:
     Keywords:                  |             Triage Stage:  Someday/Maybe
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+-----------------------------------------
Changes (by Tim Graham):

 * stage:  Unreviewed => Someday/Maybe


Comment:

 There's the problem described in #25281 that `"<app label>.<permission
 codename>"` might not uniquely identify permissions. Anyway, a proposal
 like this should be made on the DevelopersMailingList to see if there's
 consensus, however, the existence of
 
[https://github.com/django/django/blob/8095496a1c07a68d0904d594cdc3b1d9557625e0/tests/admin_views/tests.py#L1325-L1328
 a helper in Django's test suite] to help ease the verbosity here is a good
 indication that something could be done. I'm bit confused because the
 ticket's summary talks about adding a manager method to Permission but the
 description proposes adding a user method. In the latter case, a
 consideration of custom user models might be needed.

--
Ticket URL: <https://code.djangoproject.com/ticket/28140#comment:1>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.032a77c8c0b1787509a13b4ad5544a13%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to