Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
That's got to be it. Thanks a lot, Daniel. On Jan 30, 4:02 pm, Daniel Roseman wrote: > On Jan 30, 10:01 pm, steve wrote: > > > >  The problem is that the form validation fails. And it's because I'm > > sending a blank string in the category field. This field, in the > > Ingredient table, is nu

Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread Daniel Roseman
On Jan 30, 10:01 pm, steve wrote: >  The problem is that the form validation fails. And it's because I'm > sending a blank string in the category field. This field, in the > Ingredient table, is null=TRUE, so I was expecting it to work. > class Ingredient(models.Model): >     name = models.Ch

Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
This is frustrating. I need to slow down before posting. I wanted to make it clear that I still have the problem, it's just that I was correcting the way I typed out the example in this forum. On Jan 30, 2:03 pm, steve wrote: > Dang, I need to make a correction. Meant to type: > >   Ingr = Ingre

Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
Dang, I need to make a correction. Meant to type: Ingr = IngredientEditForm(request.POST, instance=Item), not: instance=I On Jan 30, 2:01 pm, steve wrote: > Hi everyone,  this issue is related simply to using jquery's $.post to > send some data to my view. I want to edit an item vi