Hmm just to add on. This not only happen with SelectDateWidget. It
happens with DateField with TextInput Widget too and also
ModelChoiceField. Saving all other fields work fine.

#these 2 >.<
country = forms.ModelChoiceField(queryset=Country.objects.all() )
birth_date = forms.DateField()

#When I save
 #get the particular object
#save other fields, work fine as I tested it by disabling the 2 fields
below in the forms and the model
#save this 2 fail, both will fail
  user_profile.country = self.cleaned_data['country']
  user_profile.birth_date = self.cleaned_data['birth_date']
  user_profile.save()

Integrity Error will occur telling me country.id cannot be null,
birth_date cannot be null. Creating a form with form_for_instance or
form_for_model work perfectly fine.

I'm using pysqlite

Hope this extra information helps

Thanks from a newb. :)

On Dec 6, 2:24 am, RajeshD <[EMAIL PROTECTED]> wrote:
> On Dec 5, 10:31 am, Stupid Dustbin <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks for the reply. However, after updating to the latest SVN
> > version of django. The same error still occurs. :(
>
> I am using the same constructs with Django rev #6652 in production.
> Perhaps you want to downgrade to that revision and try it out one more
> time? If that fails, it would be time to open a ticket.
--~--~---------~--~----~------------~-------~--~----~
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