#26043: Add a hook to run queries between the start of a transaction and a view
-------------------------------+------------------------------------
     Reporter:  srkunze        |                    Owner:  nobody
         Type:  New feature    |                   Status:  new
    Component:  HTTP handling  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by guettli):

 The new "DEP 0005: Re-thinking middleware" would solve this issue:


 >..... It also allows more powerful idioms that aren't currently possible,
 like wrapping the call to get_response in a context manager (e.g.
 transaction.atomic) or in a try/finally block.

 Source: https://github.com/django/deps/blob/master/draft/0005-rethinking-
 middleware.rst


 A big thank you to Carl Meyer, the author of DEP 0005.

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

Reply via email to