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


Ignore:
Timestamp:
Dec 11, 2015, 9:29:21 AM (9 years ago)
Author:
Baptiste Mispelon

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25917, comment 2

    initial v1  
    33
    44As for the question about `default`, that's a good point. I haven't tried and it could make the reverse operation "work" in the sense that Django would be able to get back to a valid state but there's no guarantee that your data would be preserved (any non-default values for that column would be gone).
     5
     6**edit**:
     7I just tried and if your field has a `default`, then the reverse `RemoveField` uses that to populate the database (which means it's possible to have a non-nullable field in that case)
Back to Top