Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Fixed #15622 -- Clear content type cache to avoid problems wi…

…th subsequence TransactionTestCases. Thanks to zyga for the report

Backport of r15867 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cbf9688b128cb910dc301a76c97a0a817ebf5b3e 1 parent 1d64c8a
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/contrib/contenttypes/tests.py
View
1  django/contrib/contenttypes/tests.py
@@ -22,6 +22,7 @@ def setUp(self):
def tearDown(self):
settings.DEBUG = self.old_DEBUG
Site._meta.installed = self.old_Site_meta_installed
+ ContentType.objects.clear_cache()
def test_lookup_cache(self):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.