From 8aebfa4baea4135f532c706b68f5f544d9a9e2dc Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 19 Nov 2015 08:30:09 +0100 Subject: [PATCH] Task #3517: Add total_fans order by to projects API --- taiga/projects/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/taiga/projects/api.py b/taiga/projects/api.py index dbfeb646..fedaf793 100644 --- a/taiga/projects/api.py +++ b/taiga/projects/api.py @@ -70,7 +70,8 @@ class ProjectViewSet(LikedResourceMixin, HistoryResourceMixin, ModelCrudViewSet) 'is_backlog_activated', 'is_kanban_activated') - order_by_fields = ("memberships__user_order",) + order_by_fields = ("memberships__user_order", + "total_fans") def get_queryset(self): qs = super().get_queryset()