#25142: Refactor access mixins 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:  0
  Needs tests:  1                     |  Patch needs improvement:  0
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by dfunckt):

 I have modified the AccessMixin base class to provide the dispatch method
 itself, and delegate the check for access to subclasses. This
 simplifies/cleans up the code, but most importantly, allows one to use the
 mixins as base classes to slightly customise the behaviour.

 Ticket and PR updated.

--
Ticket URL: <https://code.djangoproject.com/ticket/25142#comment:8>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.8c0b9264dbad3e85ede143207ae74fd5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to