Changes between Initial Version and Version 1 of Ticket #28000, comment 3
- Timestamp:
- Mar 31, 2017, 9:06:26 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28000, comment 3
initial v1 3 3 >> "The default value is used when new model instances are created and a value isn’t provided for the field." 4 4 5 It's right if I use Django ORM, but I expect my field has ruleI set in my model.5 It's right if I use Django ORM, but I expect my field has options I set in my model. 6 6 7 7 You said that "Django uses database defaults to set values on existing rows in a table", but if I migrate my table adding default value, migration doesn't change anything: It doesn't set default value on existing rows, it' doesn't change field (it is nullable yet and i haven't default). … … 41 41 }}} 42 42 43 but It 'sdoesn't do anything.43 but It doesn't do anything.