I know the argument list for form_for_model is getting long, but
excluding fields is just so damn useful ;)
Joseph
Maybe you are already aware of this, but I believe you can exclude fields if
you return None in the formfield callback. It's not as concise, but you can
always create your own wrapper.
Michael
+1 from me. Personally, I'm in favour of making form_for_model as
flexible as possible. 'exclude_fields' seems like a good move in that
direction.
Yours,
Russ Magee %-)
-0 from me. form_for_* are going down the same path as generic views
where they are growing so many options the parameter list is becoming
it's own little language and people are using it as a crutch for
everything possible. You can already do this (via formfield_callback),
so we're just adding a second way.
I suspect I've already lost the battle to keep these function as simple
helpers, though, which is why I'm not -1.
Malcolm
I would put myself in this boat as well. +1
> 'exclude_fields' seems like a good move in that
> direction.
Excluding fields is probably the most common thing I do to customize forms.
Gary
On Oct 16, 12:43 am, Gary Wilson <gary.wil...@gmail.com> wrote:
> Russell Keith-Magee wrote: