Ticket #10827: 10827-create-permissions-must-clear-content-type-cache.diff
File 10827-create-permissions-must-clear-content-type-cache.diff, 561 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/management/__init__.py
18 18 def create_permissions(app, created_models, verbosity, **kwargs): 19 19 from django.contrib.contenttypes.models import ContentType 20 20 from django.contrib.auth.models import Permission 21 ContentType.objects.clear_cache() 21 22 app_models = get_models(app) 22 23 if not app_models: 23 24 return