Re: object has no attribute 'count'

2010-03-16 Thread wubble u
That's great, sorted it. Thanks for your help On Mar 15, 9:46 pm, Shawn Milochik wrote: > If you're doing a 'get,' then you're always going to return exactly one > results (or get an error). > > If you do a 'filter' you can use count(). > > Shawn -- You received this message because you are s

Re: object has no attribute 'count'

2010-03-15 Thread Masklinn
On 15 Mar 2010, at 22:44 , wubble u wrote: > > Hi All, > > I'm trying to get a count of the number of rows in my queryset, > basically a SELECT COUNT(*). > > According to the django documentation, you can simply use > queryset.count(), but I'm getting the error: > > object has no attribute 'cou

Re: object has no attribute 'count'

2010-03-15 Thread Shawn Milochik
If you're doing a 'get,' then you're always going to return exactly one results (or get an error). If you do a 'filter' you can use count(). Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us