#18080: @transaction.commit_manually plus context processors doesn't work well
-------------------------------+--------------------------------------
     Reporter:  jstpierre@…    |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.3
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by akaariai):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 To me it seems the commit_manually decorator works exactly as advertised.
 The solution is to maybe define another function to do the actual
 prosessing:
 {{{
 def create_new_foo(request):
     @transaction.commit_manually
     def inner():
         # do stuff
     inner()
     return render_to_response...
 }}}

 I am closing this as invalid. If you want to reopen this please provide
 more details of what should be fixed. Is documentation erroneous or
 lacking for example?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18080#comment:1>
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 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.

Reply via email to