Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

magic-removal: Fixed #1418 -- Applied management.py fixes for 'sqlcle…

…ar'. Thanks, nesh

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a3aa5452508e6d4260bd517f31e7cd6611ab3d58 1 parent 18d1b81
Adrian Holovaty authored February 28, 2006

Showing 1 changed file with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. 9  django/core/management.py
9  django/core/management.py
@@ -297,12 +297,11 @@ def get_sql_delete(app):
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:

0 notes on commit a3aa545

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