Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1082 -- Fixed bug in sqlreset and reset with SQ…

…Lite. Thanks, Christopher Lenz

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 021b38a52c1e0e8e995fd6d2cc117e88bb636d26 1 parent 27ec1bc
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  AUTHORS
  2. +1 −1  django/core/management.py
1  AUTHORS
View
@@ -66,6 +66,7 @@ answer newbie questions, and generally made Django that much better:
lakin.wecker@gmail.com
Stuart Langridge <http://www.kryogenix.org/>
Eugene Lazutkin <http://lazutkin.com/blog/>
+ Christopher Lenz <http://www.cmlenz.net/>
limodou
Martin Maney <http://www.chipy.org/Martin_Maney>
Maniac <http://www.softwaremaniacs.org/>
2  django/core/management.py
View
@@ -224,7 +224,7 @@ def get_sql_delete(app):
connection.rollback()
else:
output.append("DROP TABLE %s;" % backend.quote_name(klass._meta.db_table))
- if references_to_delete.has_key(klass):
+ if backend.supports_constraints and references_to_delete.has_key(klass):
for rel_class, f in references_to_delete[klass]:
table = rel_class._meta.db_table
col = f.column
Please sign in to comment.
Something went wrong with that request. Please try again.