Commits

russ...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 5205553

[1.2.X] Fixed #15622 -- Clear content type cache to avoid problems with subsequence TransactionTestCases. Thanks to zyga for the report

Backport of r15867 from trunk.

  • Participants
  • Parent commits c85f205
  • Branches releases/1.2.X

Comments (0)

Files changed (1)

File django/contrib/contenttypes/tests.py

     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):
         """