Thanks for the reply. Here are the HistoricDateField and the
HistoricDateWidget classes:

http://dpaste.com/hold/51690/


--
omat



On May 20, 8:08 pm, fivaldi <[EMAIL PROTECTED]> wrote:
> Hi Omat,
>
> Does your HistoricDateField implement the compress(self, data_list)
> method and _not_ the clean(self, value) method? See the implementation
> comments in django.newforms.fields.MultiValueField. The compress
> method should also return the compressed value of the historic date
> (i.e. one value representing the historic date based on the multivalue
> input)  and that value should be available in the cleaned_data.
>
> -Robin
>
> On May 20, 6:24 pm, omat <[EMAIL PROTECTED]> wrote:
>
> > But I wish to use a MultiValueField instead of a DateField. So I
> > defined a custom date field derived from MultiValueField and used it
> > as follows:
>
> > class NoteForm(forms.ModelForm):
> >     date = HistoricDateField()
> >     ...
>
> > The form is displayed as I expect, but now clean_date() method of the
> > form is not called and cleaned_data does not have the data for 'date'.
--~--~---------~--~----~------------~-------~--~----~
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