Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1195 closed defect (fixed)

changeset 1872 broke auto_now_add in DateTimeFields

Reported by: mattimustang@… Owned by: adrian
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: UI/UX:

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

Change History (1)

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

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