Re: ForeignKey value return from web page

2008-12-03 Thread Peter Bailey
Sorry for babbling Daniel :-) , my use of all this terminology is still growing (I hope). Anyway, I sorted it out thanks to your brief description above. Trying to do too much twisting and turning lol. Cheers On Dec 3, 11:24 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 3, 3:25 pm, Pet

Re: ForeignKey value return from web page

2008-12-03 Thread Daniel Roseman
On Dec 3, 3:25 pm, Peter Bailey <[EMAIL PROTECTED]> wrote: > I am trying to use ForeignKey data returned from a page and view, and > am having trouble. I am missing something fundamental I think. > > Say I have 2 models > > class TopModel(models.Model): >         name = models.CharField(max_length

ForeignKey value return from web page

2008-12-03 Thread Peter Bailey
I am trying to use ForeignKey data returned from a page and view, and am having trouble. I am missing something fundamental I think. Say I have 2 models class TopModel(models.Model): name = models.CharField(max_length=50) db_type = models.CharField(max_length=1, choices=STATUS_DB