Re: How do you remove fields from a subclassed form?

2009-08-31 Thread Alex Gaynor
On Mon, Aug 31, 2009 at 12:13 AM, buttman wrote: > > class MyForm(ModelForm): >    field1 = CustomField(custom_option="sdsdsd") >    field2 = CustomField(custom_option="sdsdsd") >    field3 = CustomField(custom_option="sdsdsd") >    # > >    class Meta: >        model = MyModel >        exclu

Re: How do you remove fields from a subclassed form?

2009-08-30 Thread buttman
class MyForm(ModelForm): field1 = CustomField(custom_option="sdsdsd") field2 = CustomField(custom_option="sdsdsd") field3 = CustomField(custom_option="sdsdsd") # class Meta: model = MyModel exclude = ('some_field') class AnotherForm(MyForm): field1 =

Re: How do you remove fields from a subclassed form?

2009-08-30 Thread buttman
On Aug 31, 12:08 am, nbv4 wrote: > class MyForm(ModelForm): >     field1 = CustomField(custom_option="sdsdsd") >     field2 = # ... >     # > >     class Meta: > > class AnotherForm(MyForm): sorry, I accidently pressed tab + space which prematurely submitted the messgae... I will add the re

How do you remove fields from a subclassed form?

2009-08-30 Thread nbv4
class MyForm(ModelForm): field1 = CustomField(custom_option="sdsdsd") field2 = # ... # class Meta: class AnotherForm(MyForm): --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr