Re: model help for a newbie

2007-10-29 Thread Hani
Thanks Malcolm, on a lot of different levels. 1st, your code for putting the ratings into a list was very cool. It provoked a light bulb moment in my brain as I worked my way through the code. Very cool. You're right about not being able to do the sum on the ratings, but I fixed that by changing

Re: model help for a newbie

2007-10-27 Thread Malcolm Tredinnick
On Sun, 2007-10-28 at 01:15 +, Hani wrote: > Hi, > A complete and utter newbie seeks help. > > I have a model Beer with another model called TastingNotes tied via > foreign key to the Beer table. > > > models.py > > class Beer(models.Model): > beer=models.CharField(max_length=50, cor

model help for a newbie

2007-10-27 Thread Hani
Hi, A complete and utter newbie seeks help. I have a model Beer with another model called TastingNotes tied via foreign key to the Beer table. models.py class Beer(models.Model): beer=models.CharField(max_length=50, core=True) def __unicode__(self): return self.