Price.objects.annotate(_sel=Max('from_date')).filter(from_date=F('_sel')).values("category_id",
"price")
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/eacda66c-51c1-4a03-997c-cf717adfafd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.