summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Burch <jacobburch@gmail.com>2013-05-18 12:55:13 +0200
committerJacob Burch <jacobburch@gmail.com>2013-05-18 13:05:39 +0200
commit029c690b1484c6c16e9f9974fbec6bcc2b72dd77 (patch)
tree00b35260d6dc5ce71a960cb7b0f96fb4ffebf641
parent566e284c565a9ea95d81756c6b1f94dfa63fc61b (diff)
#20432: Fix for GroupAdmin test
-rw-r--r--django/contrib/auth/tests/test_management.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/auth/tests/test_management.py b/django/contrib/auth/tests/test_management.py
index 04fd4941ab..fee0a29e7b 100644
--- a/django/contrib/auth/tests/test_management.py
+++ b/django/contrib/auth/tests/test_management.py
@@ -7,6 +7,7 @@ from django.contrib.auth.management.commands import changepassword
from django.contrib.auth.models import User
from django.contrib.auth.tests.test_custom_user import CustomUser
from django.contrib.auth.tests.utils import skipIfCustomUser
+from django.contrib.contenttypes.models import ContentType
from django.core.management import call_command
from django.core.management.base import CommandError
from django.core.management.validation import get_validation_errors
@@ -195,6 +196,7 @@ class PermissionDuplicationTestCase(TestCase):
def tearDown(self):
models.Permission._meta.permissions = self._original_permissions
+ ContentType.objects.clear_cache()
def test_duplicated_permissions(self):
"""