#29750: Add a pre-dispatch() hook for class-based views
----------------------------------+--------------------------------------
     Reporter:  François Freitag  |                    Owner:  nobody
         Type:  New feature       |                   Status:  closed
    Component:  Generic views     |                  Version:  2.1
     Severity:  Normal            |               Resolution:  wontfix
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------

Comment (by Simon Charette):

 For what it's worth this is not a new idea.

 Here's a 2012 discussion about adding such hook
 https://groups.google.com/d/msg/django-developers/7c7aI-slGNc/3gP1cLOL9usJ
 by Marc Tamlyn.

 I remember that a few tickets were opened for adding such as feature over
 the years.

 I think the general consensus was that it would be useful for a large
 number of people and it's something I support myself as I've found myself
 overriding `dispatch()` a few times in the past years just to be
 confronted with similar dilemmas.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29750#comment:3>
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/073.82bc6cf3ca7ce77de2a771bd7d9df6bc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to