mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24652 -- Disallowed query execution in SimpleTestCase subclasses.
Thanks to Tim and Anssi for the review.
This commit is contained in:
@@ -505,6 +505,12 @@ Miscellaneous
|
||||
* The ``django.contrib.sites.models.Site.domain`` field was changed to be
|
||||
:attr:`~django.db.models.Field.unique`.
|
||||
|
||||
* In order to enforce test isolation, database queries are not allowed
|
||||
by default in :class:`~django.test.SimpleTestCase` tests anymore. You
|
||||
can disable this behavior by setting the
|
||||
:attr:`~django.test.SimpleTestCase.allow_database_queries` class attribute
|
||||
to ``True`` on your test class.
|
||||
|
||||
.. _deprecated-features-1.9:
|
||||
|
||||
Features deprecated in 1.9
|
||||
|
||||
Reference in New Issue
Block a user