Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#20432: Fix for GroupAdmin test

  • Loading branch information...
commit 029c690b1484c6c16e9f9974fbec6bcc2b72dd77 1 parent 566e284
@jacobb jacobb authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/contrib/auth/tests/
2  django/contrib/auth/tests/
@@ -7,6 +7,7 @@
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 import call_command
from import CommandError
from import get_validation_errors
@@ -195,6 +196,7 @@ def setUp(self):
def tearDown(self):
models.Permission._meta.permissions = self._original_permissions
+ ContentType.objects.clear_cache()
def test_duplicated_permissions(self):
Please sign in to comment.
Something went wrong with that request. Please try again.