Changes between Initial Version and Version 1 of Ticket #213


Ignore:
Timestamp:
Jul 27, 2005, 2:41:18 PM (19 years ago)
Author:
Jacob
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #213 – Description

    initial v1  
    11If I try to submit a datetime field in the admin interface, and the time is not provided (I'm setting disabled=true on the field with javascript), I get the following traceback:
    22
     3{{{
    34Traceback (most recent call last):
    45
     
    1920
    2021TypeError: expected string or buffer
     22}}}
    2123
    2224Here's a diff against 331 that fixes the problem. (I don't know if this is a use-case you want to deal with, but the fix seems pretty trivial.)
    2325
     26{{{
    2427Index: django/core/formfields.py
    2528===================================================================
     
    3538             try:
    3639                 time_tuple = time.strptime(data, '%H:%M:%S')
     40}}}
Back to Top