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