openpolitics.com

  • writing
  • quotes
  • Topics
    • academia
    • corruption
    • economics
    • education
    • environment
    • finance
    • history
    • hypertext
    • media
    • philosophy
    • psychology
    • religion
    • russia
    • ted nelson
  • about
← Previous Next →

Add voting ability to Django models

pip install votes

INSTALLED_APPS = (
...
'votes',
)

from votes.managers import VotableManager

class ArticleReview(models.Model):
    ...
    votes = VotableManager()
source: $link[host]

Tags: django, python, voting

Read Original Source

Tim Langeman © 2025 · Genesis Framework · WordPress · Log in