> 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 > -----Original Message----- > From: django-developers@googlegroups.com [mailto:django- > [EMAIL PROTECTED] On Behalf Of Joseph Kocherhans > Sent: Saturday, October 13, 2007 9:28 AM > To: django-developers@googlegroups.com > 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 received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---