Thanks for the tips folks. I'm a little surprised that Django makes  
you work so hard to make such a totally standard form element (a date  
as three pulldown menus). Is there really no easier method?

Sean



On Sep 3, 2006, at 1:31 AM, Jakub 'teodor' Krajniak wrote:

>
>
> Sean Schertell wrote:
> (...)
>> In my view, I'm using FormWrapper and that automatically makes a text
>> field for the date where the user is expected to enter the date as
>> yyyy-mm-dd. Personally, I think that's not the most user friendly way
>> to collect a date from the user. I like the more typical method of
>> having three select menus: one for month, one for date, and one for
>> year.
>>
>> 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.
>
> Regards,
>        Jakub
>
>
> >
>
>


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

Reply via email to