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 Sean Legassick, 16 years ago)
  • django/contrib/auth/management/__init__.py

     
    1818def create_permissions(app, created_models, verbosity, **kwargs):
    1919    from django.contrib.contenttypes.models import ContentType
    2020    from django.contrib.auth.models import Permission
     21    ContentType.objects.clear_cache()
    2122    app_models = get_models(app)
    2223    if not app_models:
    2324        return
Back to Top