Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1195 closed defect (fixed)

changeset 1872 broke auto_now_add in DateTimeFields

Reported by: mattimustang@… 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


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:
Exception Type: 	AttributeError
Exception Value: 	'NoneType' object has no attribute 'split'
Exception Location: 	/home/mflanaga/src/django_src/django/core/ in html2python, line 764

Change History (1)

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [1883]) Fixed #1195 -- Fixed formfields.TimeField bug introduced in [1872]

Note: See TracTickets for help on using tickets.
Back to Top