magic-removal: Fixed #1082 -- Fixed bug in sqlreset and reset with SQLite. Thanks, Christopher Lenz
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
27ec1bc29d
commit
021b38a52c
1
AUTHORS
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/>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue