Ok - so one more day of working through this did the trick and I got
through all of my issues and am successfully using modelformset, both
when creating new objects and when editing existing ones. I thought
I'd recap here in case anyone is searching for formset info, and also
to give any develope
On Wed, 2009-03-04 at 22:17 -0800, Margie wrote:
> Here's a "book" analogy to what I am doing. I am sending out a bunch
> of forms to the user. Each form contains the title of a book (my
> "tile") and an input field where the user is being asked to input the
> author of the book. When the view.
Here's a "book" analogy to what I am doing. I am sending out a bunch
of forms to the user. Each form contains the title of a book (my
"tile") and an input field where the user is being asked to input the
author of the book. When the view.py code receives the post data, for
each form where the u
On Wed, 2009-03-04 at 00:28 -0800, Margie wrote:
[...]
> After debugging into the source some more, I'm finding that my the
> problem is related to the fact that empty_permitted is getting set to
> True when all of my forms are considered "extra.
Which is reasonable. "Extra" here means "optional
Yes, I am defining _construct_form() as you do. I had just not
thought to set initial there - but that makes sense. For reference,
here is my current code, with it setting initial in _construct_form.
But you may want to read on below before bothering to look at it
because I have a theory about w
On Tue, 2009-03-03 at 22:42 -0800, Margie wrote:
> Hi Malcolm - Sorry, another formset question. Maybe you'll know the
> answer offhand, have been trying to figure this out for awhile now.
> I'm trying to set the initial value for a form field inside the
> constructor for the form. The high leve
6 matches
Mail list logo