Opened 19 years ago
Last modified 18 years ago
#435 closed defect
Exception thrown out when doing do_html2python — at Initial Version
Reported by: | Leo Shklovskii | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | 1.0 |
Severity: | normal | Keywords: | html2python |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I create ad DataTimeField type filed in model file, and show it in a text box on web page. but when I invoke do_html2python before saving the changes to postgresql, a exception was thrown out "There's been an error:
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/django-1.0.0-py2.3.egg/django/core/handlers/base.py", line 64, in get_response
response = callback(request, param_dict)
File "/usr/lib/python2.3/site-packages/liveweb/bo/club.py", line 68, in save
club_manip.do_html2python(club_changes)
File "/usr/lib/python2.3/site-packages/django-1.0.0-py2.3.egg/django/core/formfields.py", line 98, in do_html2python
new_data.setlist(field.field_name, [field.class.html2python(None)])
File "/usr/lib/python2.3/site-packages/django-1.0.0-py2.3.egg/django/core/formfields.py", line 654, in html2python
time_tuple = time.strptime(data, '%H:%M:%S')
File "/usr/lib/python2.3/_strptime.py", line 423, in strptime
found = format_regex.match(data_string)
TypeError: expected string or buffer". Seems that django look it as time field? And this only happend after updating django today(2005.8.30).