Django

Code

Ticket #1195 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

changeset 1872 broke auto_now_add in DateTimeFields

Reported by: mattimustang@hotmail.com Assigned to: adrian
Component: Core framework Version:
Keywords: Cc:
Triage Stage: Unreviewed Has patch: 0
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

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

Attachments

Change History

01/08/06 23:11:14 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #1195 (changeset 1872 broke auto_now_add in DateTimeFields)




Change Properties
Action