Hi,

I'm triying to use SplitDateTimeField. I have this form definition:

class EventsForm(forms.Form):
    title = forms.CharField(help_text=u'Ingrese el título de la
noticia', required=True, label=u'Titulo')
    tags = TagField(help_text=u'Ej: Fiesta, Internet, Jovenes, etc..',
required=True, label=u'Etiquetas/Categorias')
    expireOn = forms.SplitDateTimeField(help_text=u'Determine cuando
la noticia se vuelve obsoleta.',widget =SplitDateTimeWidget,
required=True, label=u'Fecha expiración')


However when the form is rendered with this template:

<dl {% if field.required %} class="requerido"{% endif %}>
{% for field in form %}
    <dt>{% if field.required%}*{% endif %}{{ field.label_tag }}</dt>
    {% if field.help_text %}<dd
class="ayuda"><small>{{ field.help_text }}</small></dd>{% endif %}
    <dd>{{ field }}</dd>
    {% if field.errors %}<dd class="error">{{ field.errors }}</dd>{%
endif %}
{% endfor %}
</dl>

this error happend:

'str' object has no attribute 'date'

Caught an exception while rendering: 'str' object has no attribute
'date'
1       <dl {% if field.required %} class="requerido"{% endif %}>
2       {% for field in form %}  <==HERE

I don't find much info about this in this newsgroup. Any hint?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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