#24914: Include a LoginRequiredMixin to Django
------------------------------+--------------------
     Reporter:  raphaelm      |      Owner:  nobody
         Type:  New feature   |     Status:  new
    Component:  contrib.auth  |    Version:  master
     Severity:  Normal        |   Keywords:
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+--------------------
 Django does provide very convenient decorators in `django.contrib.auth`,
 most notably the `login_required` decorator. At the same time, Django
 encourages the use of class-based views, where this cannot be used
 directly. The de-facto standard to do this is a mixin, there even is an
 example on this mixin in the documentation:
 https://docs.djangoproject.com/en/1.8/topics/class-based-views/intro
 /#mixins-that-wrap-as-view

 I'll now be working on a proposed pull request during djangocon.eu 2015
 sprint.

 It is to discuss whether the same is to be done with permission_required.

--
Ticket URL: <https://code.djangoproject.com/ticket/24914>
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/051.a0fef4ed22580f0b7bd7d37590b10d7b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to