Ticket #1418: management.2.diff
File management.2.diff, 1.2 KB (added by , 19 years ago) |
---|
-
store/django_no_magic/django/core/management.py
297 297 app_label = app_models[0]._meta.app_label 298 298 299 299 # 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)) 300 303 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)) 306 305 307 306 # Delete from the admin log. 308 307 if cursor is not None: