#24921: No Database objects can be created with set_autocommit(False)
-------------------------------+--------------------
     Reporter:  shabda         |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 If you call transaction.set_autocommit(False),

 Any further objects creation will fail, because

 
https://github.com/django/django/blob/04e8d890aec8e996d568565555164a27a6a76057/django/db/models/base.py#L699

 This line tries an atomic with savepoint=False, which raises an exception
 in no autocommit mode.

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

Reply via email to