Re: Returning an average from a Related Field.

2006-10-26 Thread johnnnnnnn
On Tue, Oct 24, 2006 at 10:46:21PM -, Ed wrote: > What do you mean when you say that the data is not 'normalized'? I'm referring to database normalization, which boils down to: store each piece of data in only one spot. Check here: http://en.wikipedia.org/wiki/Database_normalization or Google

Re: Returning an average from a Related Field.

2006-10-24 Thread johnnnnnnn
On Tue, Oct 24, 2006 at 02:28:43PM +0200, Carlos Yoder wrote: > While I believe this mini tutorial on signals is great, I guess this > functionality would be better accomplished in the DB itself, via a > trigger. There are, i think, three ways of doing what was asked for: 1- signals. Benefits: i

Re: Returning an average from a Related Field.

2006-10-16 Thread johnnnnnnn
On Sun, Oct 15, 2006 at 01:26:18PM -0700, MerMer wrote: > I have two Models. > > 1. Product > 2. Review - There can be many reviews for any product (one -to many > relationship) > > One of the fields of Review is "Rating". This holds an integer between > 1 and 5. > > I want to display a lis