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

Add filter for category to the `APIShowViewSet`

parent 84061352
No related branches found
No related tags found
No related merge requests found
......@@ -323,6 +323,9 @@ class APIShowViewSet(viewsets.ModelViewSet):
if type_ := self.request.query_params.get('type'):
shows = shows.filter(type__in=[int(type_)])
if category := self.request.query_params.get('category'):
shows = shows.filter(category__in=[int(category)])
if topic := self.request.query_params.get('topic'):
shows = shows.filter(topic__in=[int(topic)])
......
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