Django datetimefield not validating
The default value is used when new model instances are created and a value isn’t provided for the field. If you change the value of the primary key on an existing object and then save it, a new object will be created alongside the old one.When the field is a primary key, the default is also used when the field is set to . that automatically increments according to available IDs.You usually won’t need to use this directly; a primary key field will automatically be added to your model if you don’t specify otherwise.See used; it’s not just a default value that you can override.
If this is given, the default form widget will be a select box with these choices instead of the standard text field.
The second element is an iterable of 2-tuples, with each 2-tuple containing a value and a human-readable name for an option.
Grouped options may be combined with ungrouped options within a single list (such as the The name of the database column to use for this field.
If this isn’t given, Django will use the field’s name.
If your database column name is an SQL reserved word, or contains characters that aren’t allowed in Python variable names – notably, the hyphen – that’s OK.In most cases, this object will not have been saved to the database yet, so if it uses the default so that you’re sure the files are what you think they are.