Ticket #14925: clear-cache-before-creating-permissions.diff
File clear-cache-before-creating-permissions.diff, 611 bytes (added by , 14 years ago) |
---|
-
django/contrib/auth/tests/permissions.py
29 29 # expect to see them in the fixtures. 30 30 auth_models.Permission.objects.all().delete() 31 31 contenttypes_models.ContentType.objects.all().delete() 32 contenttypes_models.ContentType.objects.clear_cache() 32 33 create_permissions(auth_models, [], verbosity=0) 33 34 create_permissions(contenttypes_models, [], verbosity=0) 34 35