Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Proposal: form_for_model exclude_fields
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joseph Kocherhans  
View profile  
 More options Oct 13 2007, 3:27 am
From: "Joseph Kocherhans" <jkocherh...@gmail.com>
Date: Sat, 13 Oct 2007 02:27:48 -0500
Local: Sat, Oct 13 2007 3:27 am
Subject: Proposal: form_for_model exclude_fields
I'd like to add an 'exclude_fields' keyword argument to
form_for_model, etc. exclude_fields would be a list of field names
that should be excluded from the form. If both 'fields' and
'exclude_fields' were passed in, exclude_fields would win for any
field that existed in both lists. Any objections or issues that need
further clarification?

I know the argument list for form_for_model is getting long, but
excluding fields is just so damn useful ;)

Joseph


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Elsdoerfer  
View profile  
 More options Oct 13 2007, 9:17 pm
From: "Michael Elsdoerfer" <elsdoer...@gmail.com>
Date: Sun, 14 Oct 2007 03:17:26 +0200
Local: Sat, Oct 13 2007 9:17 pm
Subject: RE: Proposal: form_for_model exclude_fields

> I'd like to add an 'exclude_fields' keyword argument to
> form_for_model, etc. exclude_fields would be a list of field names
> that should be excluded from the form.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Keith-Magee  
View profile  
 More options Oct 14 2007, 8:47 am
From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Sun, 14 Oct 2007 20:47:27 +0800
Local: Sun, Oct 14 2007 8:47 am
Subject: Re: Proposal: form_for_model exclude_fields
On 10/13/07, Joseph Kocherhans <jkocherh...@gmail.com> wrote:

> I'd like to add an 'exclude_fields' keyword argument to
> form_for_model, etc. exclude_fields would be a list of field names
> that should be excluded from the form. If both 'fields' and
> 'exclude_fields' were passed in, exclude_fields would win for any
> field that existed in both lists. Any objections or issues that need
> further clarification?

> I know the argument list for form_for_model is getting long, but
> excluding fields is just so damn useful ;)

+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 %-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Malcolm Tredinnick  
View profile  
 More options Oct 14 2007, 1:12 pm
From: Malcolm Tredinnick <malc...@pointy-stick.com>
Date: Mon, 15 Oct 2007 03:12:03 +1000
Local: Sun, Oct 14 2007 1:12 pm
Subject: Re: Proposal: form_for_model exclude_fields

-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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Wilson  
View profile  
 More options Oct 15 2007, 11:43 pm
From: Gary Wilson <gary.wil...@gmail.com>
Date: Mon, 15 Oct 2007 22:43:30 -0500
Local: Mon, Oct 15 2007 11:43 pm
Subject: Re: Proposal: form_for_model exclude_fields

Russell Keith-Magee wrote:
> On 10/13/07, Joseph Kocherhans <jkocherh...@gmail.com> wrote:
>> I know the argument list for form_for_model is getting long, but
>> excluding fields is just so damn useful ;)

> +1 from me. Personally, I'm in favour of making form_for_model as
> flexible as possible.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Italo Maia  
View profile  
 More options Nov 5 2007, 10:07 am
From: Italo Maia <italo.m...@gmail.com>
Date: Mon, 05 Nov 2007 15:07:48 -0000
Local: Mon, Nov 5 2007 10:07 am
Subject: Re: Proposal: form_for_model exclude_fields
Is this an yes, a no, a maybe? It would be a pretty useful option.

On Oct 16, 12:43 am, Gary Wilson <gary.wil...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »