#25309: Docs: ATOMIC_REQUESTS is for **view** not http request
--------------------------------------+--------------------
Reporter: guettli | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Current docs: https://docs.djangoproject.com/en/1.8/ref/settings/#atomic-
requests
{{{
ATOMIC_REQUESTS
Default: False
Set this to True to wrap each HTTP request in a transaction on this
database. See Tying transactions to HTTP requests.
}}}
According to my understanding (and the person sitting beside me) this is
not correct.
ATOMIC_REQUESTS ties the transaction to the **view**, not the http
request.
The middleware is part of the request. It is not inside the transaction.
I think it should be:
{{{
Set this to True to wrap each view in a transaction on this database.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25309>
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/050.5a87f0775ae6518012e5bfb581eb5ca9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.