Commits

Andrew Godwin committed a49eb47

Make default not trigger field changes

  • Participants
  • Parent commits a8754e3

Comments (0)

Files changed (1)

south/management/commands/startmigration.py

 
 
 USELESS_KEYWORDS = ["choices", "help_text", "upload_to", "verbose_name"]
-USELESS_DB_KEYWORDS = ["related_name"] # Important for ORM, not for DB.
+USELESS_DB_KEYWORDS = ["related_name", "default"] # Important for ORM, not for DB.
 
 def remove_useless_attributes(field, db=False):
     "Removes useless (for database) attributes from the field's defn."