Hi all ,i have a question about Django forms in inheritance
this is my models below
class Database(models.Model):
TYPE_CHOICES = (
(u'0',u'Oracle'),
(u'1',u'MySQL'),
)
name = models.CharField(max_length=200,unique=True)
type = models.CharField(max_length=2,
On 2/1/07, aaloy <[EMAIL PROTECTED]> wrote:
> I'm trying use form inheritance to render the form, but it seems
> Django just renders the child fields and not the parent ones. Is this
> a feature or a bug?
Hi aaloy,
This is a bug, and we're aware of it. The workaround is to do as Honza
suggested,
2007/2/2, Honza Král <[EMAIL PROTECTED]>:
> On 2/2/07, aaloy <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I'm trying use form inheritance to render the form, but it seems
> > Django just renders the child fields and not the parent ones. Is this
> > a feature or a bug?
> >
> >
> > class Pare(f
On 2/2/07, aaloy <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm trying use form inheritance to render the form, but it seems
> Django just renders the child fields and not the parent ones. Is this
> a feature or a bug?
>
>
> class Pare(forms.Form):
>...: referencia = forms.CharField(max_leng
Hello,
I'm trying use form inheritance to render the form, but it seems
Django just renders the child fields and not the parent ones. Is this
a feature or a bug?
class Pare(forms.Form):
...: referencia = forms.CharField(max_length=12)
class Fill(Pare):
...: test = forms.IntegerFi
5 matches
Mail list logo