﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27894	ATOMIC_REQUESTS setting isn't honored in second view called via as_view()	Patrick Gerken	nobody	"My database has ATOMIC_REQUESTS set to true.

My view ""a"" calls a view ""b"" that adds items to the database.
Then my view ""a"" raises an exception.
The items created in the view ""b"" are in the database.

I tried to write a proper test in django to reproduce the failure but I think it is not working properly:
https://github.com/do3cc/django/commit/c9d7be5fde722b552dd4cb6276b1a1edf201f53f
I use a settings file that activates postgres and the test gets executed but I suspect that I must use the client to access the views.

This is roughly the code in question:

https://github.com/do3cc/django/blob/c9d7be5fde722b552dd4cb6276b1a1edf201f53f/tests/transactions/tests.py#L31-L36

I'd love to write a better testcase for it but I am a bit lost at the moment where to write that test case."	Bug	closed	Uncategorized	1.10	Normal	invalid			Unreviewed	0	0	0	0	0	0
