#15215: API for simpler (permission or any) checks for generic view classes
--------------------------------------------------+-------------------------
Reporter: Ciantic | Owner: nobody
Status: new | Milestone:
Component: Generic views | Version: SVN
Resolution: | Keywords:
Triage Stage: Design decision needed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
--------------------------------------------------+-------------------------
Changes (by russellm):
* stage: Unreviewed => Design decision needed
Comment:
I'm not convinced that this is exactly the right approach, but after using
CBVs in action for a bit, I will grant the premise that it's unnecessarily
difficult to add a login_required decorator to a CBV on the class itself.
#14512 was an original swing at this with a specific solution aimed at
making decorators work for class based views -- it turns out to be
inherently complex to do so. The discussions related to that thread
provide more detail ([http://groups.google.com/group/django-
developers/browse_thread/thread/f4bad32127776177 thread 1]
[http://groups.google.com/group/django-
developers/browse_thread/thread/f36447f96277fe8c thread 2]).
--
Ticket URL: <http://code.djangoproject.com/ticket/15215#comment:3>
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.