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.


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