Adrian I have been experimenting with the SelectDateWidget and I have
noticed one bit of strange behavior.  Wondering if I'm using it
incorrectly.

My original element in the form class is this:

date_opened = forms.DateField(initial=date.today())

This works as expected and if the data supplied when the form is
initialized provides a date value for date_opened, it uses the supplied
value.  If it does not, it uses today's date.  Note that it is a
required field.

Now, if I use this instead:

date_opened = forms.DateField(
   initial=date.today(),widget=SelectDateWidget)

This does render the composite widget just fine, but it will not use a
date_opened value that is supplied with the form class is instantiated
and so displays the error saying that a required field is missing.

Any thoughts?

Thanks!

--gordon


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