Re: Drop down box in django getting populated from a database table column

2011-06-30 Thread sony
Thanks a lot...I understood...and its working provided me a complete different angle of looking at it :) On Jun 30, 2:17 pm, Daniel Roseman wrote: > Op donderdag 30 juni 2011 22:10:08 UTC+1 schreef sony het volgende: > > > > > Ok...this might work for the second option . > > How about getting a d

Re: Drop down box in django getting populated from a database table column

2011-06-30 Thread Daniel Roseman
Op donderdag 30 juni 2011 22:10:08 UTC+1 schreef sony het volgende: > > Ok...this might work for the second option . > How about getting a drop down box from a data base table column > For the third time: that is what automatically happens when you use a ForeignKey field in a form. No programmi

Re: Drop down box in django getting populated from a database table column

2011-06-30 Thread sony
Ok...this might work for the second option . How about getting a drop down box from a data base table column On Jun 30, 2:03 pm, Daniel Roseman wrote: > Op donderdag 30 juni 2011 21:42:57 UTC+1 schreef sony het volgende: > > > > > > > I am sorry I think I posted one line wrong. > > > class Report

Re: Drop down box in django getting populated from a database table column

2011-06-30 Thread Daniel Roseman
Op donderdag 30 juni 2011 21:42:57 UTC+1 schreef sony het volgende: > > I am sorry I think I posted one line wrong. > > class Report(models.Model): > reportType = models.ForeignKey(ReportCategory) > name = models.CharField(max_length=200) > description = models.CharField(max_length=300) > > de

Re: Drop down box in django getting populated from a database table column

2011-06-30 Thread sony
I am sorry I think I posted one line wrong. class Report(models.Model): reportType = models.ForeignKey(ReportCategory) name = models.CharField(max_length=200) description = models.CharField(max_length=300) def __unicode__(self): return self.name Now, inside the meta class I am trying to do t

Re: Drop down box in django getting populated from a database table column

2011-06-30 Thread Daniel Roseman
On Thursday, 30 June 2011 18:51:54 UTC+1, sony wrote: > > I searched the same thing on net and got many answers but some how > dint get working with any of them. Table: 1. Report : > reportType(foreign key from ReportCategory), name, description 2. > Report Category: name,description forms.py >

Drop down box in django getting populated from a database table column

2011-06-30 Thread sony
I searched the same thing on net and got many answers but some how dint get working with any of them. Table: 1. Report : reportType(foreign key from ReportCategory), name, description 2. Report Category: name,description forms.py class ReportForm_insert(forms.ModelForm): class Meta: model=Rep