Re: Trouble with simple aggregation

2011-06-08 Thread Ian Clelland
On Wed, Jun 8, 2011 at 10:11 AM, Thomas Weholt wrote: > Say I got a model like so: > > class Article(models.Model): >title = models.CharField(max_length=100) >text = models.TextField() >category = models.CharField(max_length=20) >author = models.CharField(max_length=50) > > Article

Trouble with simple aggregation

2011-06-08 Thread Thomas Weholt
Say I got a model like so: class Article(models.Model): title = models.CharField(max_length=100) text = models.TextField() category = models.CharField(max_length=20) author = models.CharField(max_length=50) Article.objects.create(title="Foo", text="Story about foo", category="adve