Commit Graph

128 Commits (83c445dd2fc15e66d1f074657f60e3632c9fed5c)

Author SHA1 Message Date
Jesús Espino 262776043f Timeline service implementation 2014-06-05 10:08:42 +02:00
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
Anler Hp fcf4747e93 Service for adding, removing and listing votes 2014-05-30 12:43:34 +02:00
Andrey Antukh 051f9d6966 Remove wrong usage of BASE_DIR on settings. 2014-05-28 12:51:19 +02:00
Anler Hp b56dfe7cf5 Star/Unstar projects 2014-05-27 14:40:56 +02:00
Andrey Antukh 2b087678b9 Remove domains. 2014-05-26 17:33:12 +02:00
Andrey Antukh bb595b8fdd Reference refactor.
(Merged from stable/reference-refactor)
2014-05-19 13:25:40 +02:00
David Barragán Merino d786a1ba95 US #73: Create a user schemaless storage system 2014-05-14 14:01:31 +02:00
Andrey Antukh 19537cac36 Set default email backend to console on common settings. 2014-05-13 18:12:47 +02:00
David Barragán Merino 77c9a4757d Fix settings 2014-05-09 12:39:41 +02:00
David Barragán Merino 43750c3a19 Fixup history 2014-05-09 12:31:42 +02:00
David Barragán Merino 1a9ef0fe04 Remove code of questions and documents 2014-05-09 09:42:14 +02:00
David Barragán Merino 234ee7a2bc Remove the coding lines 2014-04-25 12:33:16 +02:00
Jesús Espino ee75818a18 US#45: Working the base of the proyect template system 2014-04-25 07:13:17 +02:00
David Barragán Merino 2c973f50cd Change license to AGPL-3.0 (minor fixes) 2014-04-23 13:03:47 +02:00
Andrey Antukh 9d41a48a46 Move taiga/base/users to taiga/users 2014-04-21 17:27:22 +02:00
Andrey Antukh 2ebdfca253 Change auth backends authentication on common settings. 2014-04-21 17:27:22 +02:00
Andrey Antukh 4acb59e3cf Add client interface to taiga-events. 2014-03-24 22:10:14 +01:00
Andrey Antukh 68a5fe32d3 Add session id middleware. 2014-03-24 21:37:13 +01:00
Andrey Antukh 179915e338 Fix domains module path on settings. 2014-03-22 18:09:29 +01:00
Andrey Antukh c54b14711c Remove unused HOST setting. 2014-03-21 20:48:34 +01:00
Andrey Antukh b81b53542b Remove duplicate handlers key on logging. 2014-03-21 20:46:04 +01:00
Andrey Antukh 5a9599c756 Add missiong ALLOWED_HOSTS setting on settings/common.py 2014-03-21 20:41:45 +01:00
Andrey Antukh 87c5346e84 Normalize quote char on settings with minor reorganization and cleaning. 2014-03-21 19:52:10 +01:00
Andrey Antukh 6af88277e6 Change CORS middleware location on settings. 2014-03-15 21:20:26 +01:00
David Barragán Merino 43cb4851bf Activate async emails 2014-02-28 13:50:10 +01:00
Andrey Antukh 2f0cd8ddf6 Fix test help text on settings. 2014-02-28 12:16:13 +01:00
Andrey Antukh 1af8ba7f21 Move settings to project repo root path. 2014-02-28 12:10:25 +01:00