Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #53 -- Thanks, Dobbes!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 683755118f8cbb0a31cd974b1e857984dde86b85 1 parent b1c543d
Adrian Holovaty authored July 18, 2005

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/bin/django-admin.py
3  django/bin/django-admin.py
@@ -131,7 +131,8 @@ def get_sql_delete(mod):
131 131
             else:
132 132
                 output.append("DROP TABLE %s_%s;" % (opts.db_table, f.name))
133 133
     output.append("DELETE FROM packages WHERE label = '%s';" % mod._MODELS[0]._meta.app_label)
134  
-    output.append("DELETE from content_types WHERE package = '%s';" % mod._MODELS[0]._meta.app_label)
  134
+    output.append("DELETE FROM auth_permissions WHERE package = '%s';" % mod._MODELS[0]._meta.app_label)
  135
+    output.append("DELETE FROM content_types WHERE package = '%s';" % mod._MODELS[0]._meta.app_label)
135 136
     return output[::-1] # Reverse it, to deal with table dependencies.
136 137
 get_sql_delete.help_doc = "Prints the DROP TABLE SQL statements for the given app(s)."
137 138
 get_sql_delete.args = APP_ARGS

0 notes on commit 6837551

Please sign in to comment.
Something went wrong with that request. Please try again.