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
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:
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
3 matches
Mail list logo