Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15622 -- Clear content type cache to avoid problems with subse…

…quence TransactionTestCases. Thanks to zyga for the report

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 354aa941b6f883a652ee005014579b26fd7542e6 1 parent b49ee91
Russell Keith-Magee freakboy3742 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/contrib/contenttypes/tests.py
1  django/contrib/contenttypes/tests.py
View
@@ -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.