DateField and DateTimeField documentation incomplete
|Reported by:||anonymous||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The documentation in the Model Field Reference for the DateField, DateTimeField and TimeField does not mention that these fields normalize to python datetime objects. The documention also does not indicate how to set or modify these values in python code (although acceptable inputs in forms is documented in the Form Fields reference).
I think the DateField doc (http://docs.djangoproject.com/en/dev/ref/models/fields/#datefield) could be improved as follows:
Current: A date field. Has a few extra optional arguments:
Suggested: A date field. Normalizes to a python datetime.date object. Has a few optional arguments.
And similarly for DateTimeField and TimeField.
Change History (6)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|