#1195 closed defect (fixed)
changeset 1872 broke auto_now_add in DateTimeFields
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
A simple test case:
class Foo(meta.Model): name = meta.CharField(maxlength=16) date = meta.DateTimeField(auto_now_add=True) class META: admin = meta.Admin()
produces the following traceback
AttributeError at /admin/date/foos/add/ 'NoneType' object has no attribute 'split' Request Method: POST Request URL: http://192.168.100.139:8001/admin/date/foos/add/ Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'split' Exception Location: /home/mflanaga/src/django_src/django/core/formfields.py in html2python, line 764
Note:
See TracTickets
for help on using tickets.
(In [1883]) Fixed #1195 -- Fixed formfields.TimeField bug introduced in [1872]