mirror of
https://github.com/django/django.git
synced 2025-05-07 23:46:30 +00:00
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
|
lakin.wecker@gmail.com
|
||||||
Stuart Langridge <http://www.kryogenix.org/>
|
Stuart Langridge <http://www.kryogenix.org/>
|
||||||
Eugene Lazutkin <http://lazutkin.com/blog/>
|
Eugene Lazutkin <http://lazutkin.com/blog/>
|
||||||
|
Christopher Lenz <http://www.cmlenz.net/>
|
||||||
limodou
|
limodou
|
||||||
Martin Maney <http://www.chipy.org/Martin_Maney>
|
Martin Maney <http://www.chipy.org/Martin_Maney>
|
||||||
Maniac <http://www.softwaremaniacs.org/>
|
Maniac <http://www.softwaremaniacs.org/>
|
||||||
|
@ -224,7 +224,7 @@ def get_sql_delete(app):
|
|||||||
connection.rollback()
|
connection.rollback()
|
||||||
else:
|
else:
|
||||||
output.append("DROP TABLE %s;" % backend.quote_name(klass._meta.db_table))
|
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]:
|
for rel_class, f in references_to_delete[klass]:
|
||||||
table = rel_class._meta.db_table
|
table = rel_class._meta.db_table
|
||||||
col = f.column
|
col = f.column
|
||||||
|
Loading…
x
Reference in New Issue
Block a user