magic-removal: Fixed #1418 -- Applied management.py fixes for 'sqlclear'. Thanks, nesh

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-02-28 14:27:00 +00:00
parent 18d1b8177d
commit a3aa545250
1 changed files with 4 additions and 5 deletions

View File

@ -297,12 +297,11 @@ def get_sql_delete(app):
app_label = app_models[0]._meta.app_label
# Delete from django_package, auth_permission, django_content_type.
# TODO: fix this when permissions are activated again
# output.append("DELETE FROM %s WHERE %s = '%s';" % \
# (backend.quote_name('auth_permission'), backend.quote_name('package'), app_label))
output.append("DELETE FROM %s WHERE %s = '%s';" % \
(backend.quote_name('django_package'), backend.quote_name('label'), app_label))
output.append("DELETE FROM %s WHERE %s = '%s';" % \
(backend.quote_name('auth_permission'), backend.quote_name('package'), app_label))
output.append("DELETE FROM %s WHERE %s = '%s';" % \
(backend.quote_name('django_content_type'), backend.quote_name('package'), app_label))
(backend.quote_name('django_content_type'), backend.quote_name('app_label'), app_label))
# Delete from the admin log.
if cursor is not None: