Django

Code

Changeset 2296

Show
Ignore:
Timestamp:
02/09/06 23:12:43 (3 years ago)
Author:
adrian
Message:

magic-removal: Fixed #1082 -- Fixed bug in sqlreset and reset with SQLite. Thanks, Christopher Lenz

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/AUTHORS

    r1979 r2296  
    6767    Stuart Langridge <http://www.kryogenix.org/> 
    6868    Eugene Lazutkin <http://lazutkin.com/blog/> 
     69    Christopher Lenz <http://www.cmlenz.net/> 
    6970    limodou 
    7071    Martin Maney <http://www.chipy.org/Martin_Maney> 
  • django/branches/magic-removal/django/core/management.py

    r2278 r2296  
    225225         else: 
    226226             output.append("DROP TABLE %s;" % backend.quote_name(klass._meta.db_table)) 
    227              if references_to_delete.has_key(klass): 
     227             if backend.supports_constraints and references_to_delete.has_key(klass): 
    228228                 for rel_class, f in references_to_delete[klass]: 
    229229                     table = rel_class._meta.db_table