> 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 (FileField or ImageField)
Read James Bennett's post on Newforms for the solution to this problem. http://www.b-list.org/weblog/2007/nov/25/newforms/ Cheers Thejaswi Puthraya http://thejaswi.info/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---