Re: Problem subclassing forms

2007-11-27 Thread Thejaswi Puthraya
> baseForm = forms.form_for_model( MyModel ) > class Form ( baseForm ): > extra_field = forms.CharField() > > I'd like to have the fields defined in MyModel and add the > extra_field, but it doesn't work. > Besides, I'd like to have a clear example about how to use the forms > with files (File

Problem subclassing forms

2007-11-27 Thread Grupo Django
Hello, it seems that when I create this code, doesn't work as expected. baseForm = forms.form_for_model( MyModel ) class Form ( baseForm ): extra_field = forms.CharField() I'd like to have the fields defined in MyModel and add the extra_field, but it doesn't work. Besides, I'd like to have a