Hi Jirka,

Thanks for the response, but if I understand your post then the issue is 
still the need to iterate over every Team (as opposed to every assignment) 
in order to construct a collection of Teams in a certain Status... if that 
makes sense.

I think the crux of the issue is a limitation of Django's ORM to retrieve 
anything except the fields you are grouping by/working with with the 
"annotate" and "values" methods.  E.g. I'm grouping by the assignment_id in 
assignment_update and getting the max_date from each of the groups, but 
Django is unable to give me the assignment_update_id of the max_date record 
it finds (in this case it just returns all records...).

Cheers,

Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/5O4kTbR9V-0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to