Re: displaying values with SelectDateTime widget

2007-07-05 Thread Bob Dively

On Jul 5, 4:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I take it you're using a default {{form}} view instead of outputting
> your own?
> If you output your own, it's as simple as using the |date:"" filter.

It's not a formatting problem. I can't figure out how to get the
correct values selected in the three select boxes created by
SelectDateWidget.


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



Re: displaying values with SelectDateTime widget

2007-07-05 Thread [EMAIL PROTECTED]

I take it you're using a default {{form}} view instead of outputting
your own?
If you output your own, it's as simple as using the |date:"" filter.

On Jul 5, 3:09 pm, Bob Dively <[EMAIL PROTECTED]> wrote:
> I'm trying to use the SelectDateTime widget but I can't figure out how
> to get it to correctly display a value retrieved from a database. For
> example:
>
> client = Client.objects.get(Client_ID=client_id)
> ClientForm = forms.models.form_for_instance(client)
> ClientForm.base_fields['Birth_Dat'].widget = SelectDateWidget()
>
> I've been unable to get the resulting HTML to show anything other than
> 01-Jan-2007 as the date. ("Birth_Dat" with no "e" is correct, btw.)
> Any suggestions would be greatly appreciated, as I'm completely
> baffled.


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



displaying values with SelectDateTime widget

2007-07-05 Thread Bob Dively

I'm trying to use the SelectDateTime widget but I can't figure out how
to get it to correctly display a value retrieved from a database. For
example:

client = Client.objects.get(Client_ID=client_id)
ClientForm = forms.models.form_for_instance(client)
ClientForm.base_fields['Birth_Dat'].widget = SelectDateWidget()

I've been unable to get the resulting HTML to show anything other than
01-Jan-2007 as the date. ("Birth_Dat" with no "e" is correct, btw.)
Any suggestions would be greatly appreciated, as I'm completely
baffled.


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