#25142: Refactor dispatch method in PermissionRequiredMixin to allow 
customisation
--------------------------------------+------------------------------------
     Reporter:  dfunckt               |                    Owner:  dfunckt
         Type:  Cleanup/optimization  |                   Status:  assigned
    Component:  contrib.auth          |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  1
  Needs tests:  1                     |  Patch needs improvement:  1
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by dfunckt):

 Just in case I was not clear in the ticket's description, the purpose is
 to allow subclassing the PermissionRequiredMixin to customise
 authorization. As it is now, PermissionRequiredMixin has model-level
 authorization hard-coded to dispatch -- there's no way to extend it -- one
 must implement a completely new mixin, duplicating most code from
 PermissionRequiredMixin.

--
Ticket URL: <https://code.djangoproject.com/ticket/25142#comment:5>
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/065.704856abfa1853b0ad8235011c4f3f11%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to