On 9/3/06, Jakub 'teodor' Krajniak <[EMAIL PROTECTED]> wrote:
> Sean Schertell wrote:
> (...)
> > The question is, how can I get those three menus to create a single
> > date object that plays nice with Django?
>
> I think that writing CustomForm with SelectFields would be good idea.
> Next in views or in overwritten save() method,
> you could join data from those fields into one date field and save it.
> See in django source how is written ChangeManipulator.

I would also use a custom form.

Also, if there are more than two or three date fields, it may be
worthwhile coding up your own subclass of  django.forms.FormField or
django.forms.HiddenField, which renders the three drop-down lists and
does the validation.

Alan.


>
> Regards,
>        Jakub
>
>
> >
>


-- 
Alan Green
[EMAIL PROTECTED] - http://bright-green.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to