﻿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
12530	Code in test classes can get access to live database	Art	nobody	"When assigning fields in a test case class like this:

{{{
from django.test import TestCase

class TestClass(TestCase):

    field = [x for x in DataBaseObject.objects.all()]
}}}

The code is actually executed against ""normal"" database in settings.py, not the one which is temporarily created.
Possible workaround is to use property/lambda syntax."		closed	Testing framework	1.1		wontfix			Unreviewed	0	0	0	0	0	0
