On Tue, 2008-07-01 at 02:18 -0700, omat wrote:
> Hi,
> 
> I updated Django to svn trunk v. 7811 from about a week old version.
> 
> When saving a form (ModelForm instance) with a foreign key to another
> model, this used to work:
> 
> photo = form.save(commit=False)
> photo.album = album
> photo.save()
> 
> 
> But now it raises a ValueError at the form.save(commit=False):
> 
> ValueError: Cannot assign None: "Photo.album" does not allow null
> values.

This error suggests the "album" is None. Django raises an error for that
situation now (since it always was an error). So you need to investigate
why "album" would be None there.

That change was checked in on June 5 (it was r7574).

Regards,
Malcolm



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