Django forms, inheritance

2011-05-24 Thread feng yu
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,

Re: Forms inheritance

2007-02-05 Thread Adrian Holovaty
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,

Re: Forms inheritance

2007-02-02 Thread aaloy
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

Re: Forms inheritance

2007-02-01 Thread Honza Král
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

Forms inheritance

2007-02-01 Thread aaloy
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