Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Russell Keith-Magee authored March 17, 2011

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/contrib/contenttypes/tests.py
1  django/contrib/contenttypes/tests.py
@@ -22,6 +22,7 @@ def setUp(self):
22 22
     def tearDown(self):
23 23
         settings.DEBUG = self.old_DEBUG
24 24
         Site._meta.installed = self.old_Site_meta_installed
  25
+        ContentType.objects.clear_cache()
25 26
 
26 27
     def test_lookup_cache(self):
27 28
         """

0 notes on commit cbf9688

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