taiga-back/settings
Anler Hp 9923e50603 Generic voting application
The stars application has been removed in favor of a more generic voting
application that works with any model. Starring a project is just a
special case of voting a project.

Usage.

Add a vote:

    votes.add_vote(<model instance>, user)

Remove a vote:

    votes.remove_vote(<model instance>, user)

Get the queryset of users that voted an object:

    votes.get_voters(<model instance>)

Get the number of votes an object has:

    votes.get_votes(<model instance>)

Get the objects of type <model> voted by an user:

    votes.get_voted(user, <model>)

The issues application is already making use of the votes application
through the following urls:

        /api/v1/issues/<id>/upvote      <- url name is "issues-upvote"
        /api/v1/issues/<id>/downvote    <- url name is "issues-downvote"
2014-06-02 12:03:09 +02:00
..
__init__.py Remove the coding lines 2014-04-25 12:33:16 +02:00
common.py Generic voting application 2014-06-02 12:03:09 +02:00
development.py Remove the coding lines 2014-04-25 12:33:16 +02:00
local.py.example Remove the coding lines 2014-04-25 12:33:16 +02:00
testing.py Fix settings 2014-05-09 12:39:41 +02:00
travis.py Remove the coding lines 2014-04-25 12:33:16 +02:00