db.models.DateTimeField

class DateTimeField(auto_now=False, auto_now_add=False, **options) [source]

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.

doc_Django
2016-10-09 18:35:16
Comments
Leave a Comment

Please login to continue.