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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.