Ticket #14925: clear-cache-before-creating-permissions.diff

File clear-cache-before-creating-permissions.diff, 611 bytes (added by Jim Dalton, 14 years ago)
  • django/contrib/auth/tests/permissions.py

     
    2929        # expect to see them in the fixtures.
    3030        auth_models.Permission.objects.all().delete()
    3131        contenttypes_models.ContentType.objects.all().delete()
     32        contenttypes_models.ContentType.objects.clear_cache()
    3233        create_permissions(auth_models, [], verbosity=0)
    3334        create_permissions(contenttypes_models, [], verbosity=0)
    3435
Back to Top