Re: forms and modelform

2008-12-03 Thread grahamu
Buddy, I found this, you might give it a try. http://www.djangosnippets.org/snippets/703/ Graham On Nov 28, 9:59 am, Buddy <[EMAIL PROTECTED]> wrote: > Yes, I try it before to my ask here. I get error if use likethis > (class B(forms.ModelForm, A): > > ### > TypeError at /A/ > > Error when cal

Re: forms and modelform

2008-11-28 Thread Buddy
Yes, I try it before to my ask here. I get error if use likethis (class B(forms.ModelForm, A): ### TypeError at /A/ Error when calling the metaclass bases metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases Request Method:

Re: forms and modelform

2008-11-28 Thread Daniel Roseman
On Nov 28, 3:47 pm, Buddy <[EMAIL PROTECTED]> wrote: > I have model: > > class A(forms.Form): >     p1 = forms.CharField() >     p2 = forms.CharField() > > class B(A): >     class Meta: >         model = User >         fields = ('username', 'email', 'first_name', 'last_name',) > > http://dpaste.co