django-voting

problem ordering by votes with django-voting

I have a model Post, and a model Vote. Vote (form django-voting) is essentially just a pointer to a Post and -1, 0, or 1. There is also Tourn, which is a start date and an end date. A Post made between the start and end of a Tourn is submitted to that tournament. For the sake of rep calculation, I'm trying to find the top 3 winners of...

How to restrict users voting on their own model

I am using django-voting as a voting application for two of my models. Those both models have fields "author". How can I restrict a user from voting on a model that has this particular user set as it's author without modifying django-voting app? Django middleware is the first thing that comes to my mind, but I don't understand it's "pr...

URL problem w/ code from a django-voting tutorial

I'm trying to use the django-voting tutorial from this blog: http://new.justinlilly.com/blog/2008/nov/04/django-voting-a-brief-tutorial/ to get a simple up/down voting system working on an app of mine. But just like the first commenter from that post, this code in urls.py: urlpatterns = patterns('', url(r'^(?P[-\w]+)/(?Pup|down|clear...

Using django and django-voting app, how can I order a queryset according to the votes of each item?

(I'm new to python and django so please bear with me for a second. I apologise if this has been answered elsewhere and couldn't find it) Let's say I have a Link model and through the django-voting application users can vote on link instances. How can I order those link instances according to their score, eg. display those with the highe...

Django threadedcomments and voting

I'm using django-threadedcomments and django-voting in my project to achieve a Reddit-like comments voting system. I've set everything up correctly and I'm able to successfully record votes for each threaded comment and its children, however I'm a bit stuck as to how to sort the comments so that the comment with the highest score rises ...