From 2209ef193452314d53cd7a7360798ea79f766098 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Wed, 3 Aug 2022 16:36:42 -0400 Subject: [PATCH] Fix NoteFilterSet --- program/filters.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/program/filters.py b/program/filters.py index a072cdbd..24b53b82 100644 --- a/program/filters.py +++ b/program/filters.py @@ -224,7 +224,7 @@ class NoteFilterSet(StaticFilterHelpTextMixin, filters.FilterSet): field_name="id", help_text="Return only notes matching the specified id(s).", ) - owner = IntegerInFilter( + show_owner = IntegerInFilter( field_name="show__owners", help_text="Return only notes by show the specified owner(s): all notes the user may edit.", ) @@ -232,13 +232,11 @@ class NoteFilterSet(StaticFilterHelpTextMixin, filters.FilterSet): class Meta: model = models.Note help_texts = { - "host": "Return only notes from the specified host.", - "user": "Return only notes created by the specified user.", + "owner": "Return only notes created by the specified user.", } fields = [ "ids", - "owner", - "user", + "show_owner" "owner", ] -- GitLab