Changes between Initial Version and Version 1 of Ticket #23719, comment 2


Ignore:
Timestamp:
Oct 28, 2014, 10:38:43 AM (10 years ago)
Author:
Claude Paroz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23719, comment 2

    initial v1  
    1919         # (Django usually does not use in-database defaults)
    2020-        if not self.skip_default(field) and field.default is not None:
    21 +        if not self.skip_default(field) and field.default is not in (None, NOT_PROVIDED):
     21+        if not self.skip_default(field) and field.default not in (None, NOT_PROVIDED):
    2222             sql = self.sql_alter_column % {
    2323                 "table": self.quote_name(model._meta.db_table),
Back to Top