Changes between Initial Version and Version 1 of Ticket #28000, comment 3


Ignore:
Timestamp:
Mar 31, 2017, 9:06:26 AM (7 years ago)
Author:
Matteo Pietro Russo

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28000, comment 3

    initial v1  
    33>> "The default value is used when new model instances are created and a value isn’t provided for the field."
    44
    5 It's right if I use Django ORM, but I expect my field has rule I set in my model.
     5It's right if I use Django ORM, but I expect my field has options I set in my model.
    66
    77You 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).
     
    4141}}}
    4242
    43 but It's doesn't do anything.
     43but It doesn't do anything.
Back to Top