Created
August 12, 2019 09:02
-
-
Save akshar-raaj/d4424dc722d132e27fb357dbaf723c70 to your computer and use it in GitHub Desktop.
Total votes cast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Choice.objects.aggregate(num_votes=Sum('votes')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment