From 2880b5b3c72da33fa751f85fa19452230f09f0d1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 8 Feb 2020 17:37:26 +0100 Subject: [PATCH] Useless to search a note by its id (already implemented) --- apps/api/note/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/api/note/views.py b/apps/api/note/views.py index 5c7cdc96..d751b5f8 100644 --- a/apps/api/note/views.py +++ b/apps/api/note/views.py @@ -69,10 +69,6 @@ class NotePolymorphicViewSet(viewsets.ModelViewSet): alias = self.request.query_params.get("alias", ".*") queryset = queryset.filter(Q(alias__name__regex=alias) | Q(alias__normalized_name__regex=alias)) - note_id = self.request.query_params.get("id", None) - if note_id: - queryset = queryset.filter(id=note_id) - note_type = self.request.query_params.get("type", None) if note_type: l = str(note_type).lower()