#26323: TransactionManagementError is raised when autocommit is false
-------------------------------------+-------------------------------------
Reporter: tltx | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: master
(models, ORM) |
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 aaugustin):
In case that isn't clear — you're hitting this issue because you aren't
following the documentation I linked to in my earlier comment. Just add a
with transaction.atomic inside your try/except and things should work.
--
Ticket URL: <https://code.djangoproject.com/ticket/26323#comment:10>
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/062.19574b13f38d6e67ca82310259ac941a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.