Adding Fields To Querysets

2010-03-11 Thread wubble u
way of accomplishing this? Cheers, wubble u -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@g

Re: Adding Fields To Querysets

2010-03-13 Thread wubble u
their values from the template, but adding a field with dot notation in the view has done the trick anyway. Thanks again for your help. Regards, wubble u On Mar 12, 3:46 pm, Darren wrote: > the simplest method should work, perhaps you made a mistake early on > which set you off on the

object has no attribute 'count'

2010-03-15 Thread wubble u
_name='home') away_team_id = models.ForeignKey(Teams, related_name='away') I've even tried len(hResults) and I get the same error. The count attribute seems to work ok though if I just do Results.objects.all() Does anyone have any ideas why this errors? Regards, wubble u -- You

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