Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- question = Question.objects.annotate(ans_count=Count('answer')).filter(ans_count=True).order_by('-answer').distinct()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement