1. Andrew Godwin
  2. south

Commits

Andrew Godwin  committed 8ee701c

Fix #368: Use keep_default=False

  • Participants
  • Parent commits 0225ace
  • Branches default

Comments (0)

Files changed (1)

File south/creator/actions.py

View file
     
     FORWARDS_TEMPLATE = '''
         # Adding field '%(model_name)s.%(field_name)s'
-        db.add_column(%(table_name)r, %(field_name)r, %(field_def)s)'''
+        db.add_column(%(table_name)r, %(field_name)r, %(field_def)s, keep_default=False)'''
     
     BACKWARDS_TEMPLATE = '''
         # Deleting field '%(model_name)s.%(field_name)s'