Fixed #25176 -- Prevented TestCase.setUpTestData() exception from leaking transaction.

This commit is contained in:
Adam Chainz 2015-07-26 17:42:21 +01:00 committed by Tim Graham
parent f4afa699b6
commit 0abb06930f
3 changed files with 41 additions and 1 deletions

View file

@ -18,3 +18,6 @@ Bugfixes
* Fixed ``QuerySet.raw()`` so ``InvalidQuery`` is not raised when using the
``db_column`` name of a ``ForeignKey`` field with ``primary_key=True``
(:ticket:`12768`).
* Prevented an exception in ``TestCase.setUpTestData()`` from leaking the
transaction (:ticket:`25176`).