Can you be more clear on the exact result you're trying to achieve? Do you want to see, for a given high school, how many recruit objects are foreign keyed to it?
On Apr 26, 7:38 am, Nuno Maltez <[email protected]> wrote: > Are you saying that: > > collegelist = > college.current_objects.filter(collegechoices__school=highschoolid).exclude > (name='Undeclared').distinct().annotate(ccount=Count('collegechoices')) > > gives you the same results as > > collegelist = > college.current_objects.exclude(name='Undeclared').distinct().annotate(ccou > nt=Count('collegechoices')) > > ? > > I don't think it should behave that way... > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

