I'm trying to use a SplitDateTimeWidget for a forms.DateTimeField
field, but keep getting TypeError: "expected string or buffer"

The traceback leads to `strptime.py`, which has `found =
format_regex.match(data_string) `.  The local variables are:

data_string = [u'2007-09-29', u'11:05:59.898833']
format = u'%Y-%m-%d %H:%M:%S

It looks like the SplitDateTimeWidget is returning an array of [date,
time] strings, when it should be returning a single string.

Does anyone know how to do this?  Am I using the SplitDateTimeWidget
incorrectly?

Thanks,
Kyle.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to