Re: Error on aggragate function-Count

2011-03-14 Thread pols
Thanks for correcting me...Its now working -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.

Re: Error on aggragate function-Count

2011-03-11 Thread Jason Culverhouse
On Mar 11, 2011, at 5:02 AM, pols wrote: > hai > I have two models as shown belove > > from django.db import models > from django.db.models import Sum > # Create your models here. > class polls(models.Model): > question = models.CharField(max_length=200) > pubish_date = models.DateTime

Error on aggragate function-Count

2011-03-11 Thread pols
hai I have two models as shown belove from django.db import models from django.db.models import Sum # Create your models here. class polls(models.Model): question = models.CharField(max_length=200) pubish_date = models.DateTimeField('Date published') def __unicode__(self):