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


Ignore:
Timestamp:
10/28/14 15:38:43 (8 years ago)
Author:
Claude Paroz
Comment:

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