Skip to content
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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1d64c8a commit cbf9688b128cb910dc301a76c97a0a817ebf5b3e @freakboy3742 freakboy3742 committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/contrib/contenttypes/
1 django/contrib/contenttypes/
@@ -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):

0 comments on commit cbf9688

Please sign in to comment.
Something went wrong with that request. Please try again.