From d3e98ac158035218f482e3b629e1b5d757c15bf9 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Tue, 2 Apr 2019 07:57:38 +0200 Subject: [PATCH] Remove unnecessary view (fixed #4549) --- openslides/agenda/views.py | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/openslides/agenda/views.py b/openslides/agenda/views.py index 12e1f6566..c1a3940ff 100644 --- a/openslides/agenda/views.py +++ b/openslides/agenda/views.py @@ -47,13 +47,7 @@ class ItemViewSet( result = has_perm(self.request.user, "agenda.can_see") # For manage_speaker and tree requests the rest of the check is # done in the specific method. See below. - elif self.action in ( - "partial_update", - "update", - "sort", - "sort_whole", - "assign", - ): + elif self.action in ("partial_update", "update", "sort", "assign"): result = ( has_perm(self.request.user, "agenda.can_see") and has_perm(self.request.user, "agenda.can_see_internal_items") @@ -343,21 +337,6 @@ class ItemViewSet( """ return self.sort_tree(request, Item, "weight", "parent_id") - @list_route(methods=["post"]) - def sort_whole(self, request): - """ - Sorts the whole agenda represented in a tree of ids. The request data should be a list (the root) - of all main agenda items. Each node is a dict with an id and optional all children: - { - id: - children: [ - - ] - } - Every id has to be given. - """ - return self.sort_tree(request, Item, "weight", "parent_id") - @list_route(methods=["post"]) @transaction.atomic def assign(self, request):