Ticket #1418: management.2.diff

File management.2.diff, 1.2 KB (added by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 14 years ago)

new patch

  • store/django_no_magic/django/core/management.py

     
    297297    app_label = app_models[0]._meta.app_label
    298298
    299299    # Delete from django_package, auth_permission, django_content_type.
     300    # TODO: fix this when permissions are activated again
     301    #output.append("DELETE FROM %s WHERE %s = '%s';" % \
     302    #    (backend.quote_name('auth_permission'), backend.quote_name('package'), app_label))
    300303    output.append("DELETE FROM %s WHERE %s = '%s';" % \
    301         (backend.quote_name('django_package'), backend.quote_name('label'), app_label))
    302     output.append("DELETE FROM %s WHERE %s = '%s';" % \
    303         (backend.quote_name('auth_permission'), backend.quote_name('package'), app_label))
    304     output.append("DELETE FROM %s WHERE %s = '%s';" % \
    305         (backend.quote_name('django_content_type'), backend.quote_name('package'), app_label))
     304        (backend.quote_name('django_content_type'), backend.quote_name('app_label'), app_label))
    306305
    307306    # Delete from the admin log.
    308307    if cursor is not None:
Back to Top