I have submitted a ticket for the issue:
http://code.djangoproject.com/ticket/7585
Thanks...
On Jul 1, 12:51 pm, omat <[EMAIL PROTECTED]> wrote:
> More specifically, I think the problem is in
> ReverseSingleRelatedObjectDescriptor in related.py, where it does not
> check if commit=False at lin
More specifically, I think the problem is in
ReverseSingleRelatedObjectDescriptor in related.py, where it does not
check if commit=False at line 249:
...
if value is None and self.field.null == False:
raise ValueError('Cannot assign None: "%s.%s" does not
allow null values.' %
But it is raised at the line:
photo = form.save(commit=False)
On Jul 1, 12:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> 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 (ModelFor
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.
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=Fals
5 matches
Mail list logo