Skip to content
Snippets Groups Projects
Commit 2209ef19 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Fix NoteFilterSet

parent 188b32b1
No related branches found
No related tags found
No related merge requests found
......@@ -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",
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment