Permalink
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...
1 parent 27ec1bc commit 021b38a52c1e0e8e995fd6d2cc117e88bb636d26 @adrianholovaty adrianholovaty committed Feb 10, 2006
Showing with 2 additions and 1 deletion.
  1. +1 −0 AUTHORS
  2. +1 −1 django/core/management.py
View
1 AUTHORS
@@ -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/>
View
2 django/core/management.py
@@ -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

0 comments on commit 021b38a

Please sign in to comment.