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.com/94378/
>
> but fields that define in class B not apears when I render it in html.
> Why is it not apears?
Because neither A nor B are ModelForms. You could make B inherit from
both ModelForm and A - untested, but should work:
class B(forms.ModelForm, A):
... etc
>
> PS
> Whether exist class'' tree in any a form for common observe?
Sorry, no idea what you're asking here.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---