A simple Django app to conduct vote.
Project description
Vote is a simple Django app to conduct vote for each model
Quick start
Install django-vote by pip:
pip install django-vote
Add 'vote' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'vote', )
Run python manage.py syncdb to create the vote models.
Declare vote field to the model you want to vote:
from vote.manager import VotableManager class ArticleReview(models.Model): ... votes = VotableManager()
Use vote API:
>>> review = ArticleReview.objects.get(pk=1) >>> review.votes.up(user) >>> review.votes.down(user)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-vote-1.0.4.tar.gz
(183.0 kB
view details)
File details
Details for the file django-vote-1.0.4.tar.gz
.
File metadata
- Download URL: django-vote-1.0.4.tar.gz
- Upload date:
- Size: 183.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5902bc9fb1a378b59bce11451d2c47e56d2926a18695c1386a4e60f302eff223 |
|
MD5 | a05d6aaa0162bc0f74cc39d1434b14ac |
|
BLAKE2b-256 | 22586bdaab371c061dcad6b461038483769a66c21ce45fe2104d0ea8e3e15d65 |