class DateTimeField([auto_now=False, auto_now_add=False, **options])¶
A date and time, represented in Python by a datetime.datetime instance. Takes the same extra arguments as DateField.
The default form widget for this field is a single TextInput. The admin uses two separate TextInput widgets with JavaScript shortcuts.
https://docs.djangoproject.com/en/1.7/ref/models/fields/#model-field-types
DateTimeField¶
class DateTimeField([auto_now=False, auto_now_add=False, **options])¶ A date and time, represented in Python by a datetime.datetime instance. Takes the same extra arguments as DateField.
The default form widget for this field is a single TextInput. The admin uses two separate TextInput widgets with JavaScript shortcuts.