Changes between Initial Version and Version 1 of Ticket #23719, comment 2
- Timestamp:
- Oct 28, 2014, 10:38:43 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23719, comment 2
initial v1 19 19 # (Django usually does not use in-database defaults) 20 20 - if not self.skip_default(field) and field.default is not None: 21 + if not self.skip_default(field) and field.default isnot in (None, NOT_PROVIDED):21 + if not self.skip_default(field) and field.default not in (None, NOT_PROVIDED): 22 22 sql = self.sql_alter_column % { 23 23 "table": self.quote_name(model._meta.db_table),