Skip to content

Instantly share code, notes, and snippets.

@akshar-raaj
Created August 12, 2019 09:08
Show Gist options
  • Save akshar-raaj/c9f15e9eb2308cff09b47ed907a3f0b3 to your computer and use it in GitHub Desktop.
Save akshar-raaj/c9f15e9eb2308cff09b47ed907a3f0b3 to your computer and use it in GitHub Desktop.
Question.objects.values('question_text').annotate(cnt=Count('question_text'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment