From 683755118f8cbb0a31cd974b1e857984dde86b85 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 18 Jul 2005 02:38:44 +0000 Subject: [PATCH] Fixed #53 -- Thanks, Dobbes! git-svn-id: http://code.djangoproject.com/svn/django/trunk@162 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/bin/django-admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py index 1b33a96954..9a19a492e4 100755 --- a/django/bin/django-admin.py +++ b/django/bin/django-admin.py @@ -131,7 +131,8 @@ def get_sql_delete(mod): else: output.append("DROP TABLE %s_%s;" % (opts.db_table, f.name)) output.append("DELETE FROM packages WHERE label = '%s';" % mod._MODELS[0]._meta.app_label) - output.append("DELETE from content_types WHERE package = '%s';" % mod._MODELS[0]._meta.app_label) + output.append("DELETE FROM auth_permissions WHERE package = '%s';" % mod._MODELS[0]._meta.app_label) + output.append("DELETE FROM content_types WHERE package = '%s';" % mod._MODELS[0]._meta.app_label) return output[::-1] # Reverse it, to deal with table dependencies. get_sql_delete.help_doc = "Prints the DROP TABLE SQL statements for the given app(s)." get_sql_delete.args = APP_ARGS