From 0bc330bab4f5526e9e5c72e9ec4c872e82ab4673 Mon Sep 17 00:00:00 2001 From: Jakub Kaniecki Date: Sun, 16 Jun 2024 17:30:38 +0200 Subject: [PATCH] categories --- jobposting/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jobposting/views.py b/jobposting/views.py index acd4411..888d2f1 100644 --- a/jobposting/views.py +++ b/jobposting/views.py @@ -78,9 +78,13 @@ class JobOfferListView(APIView): def get(self, request, format=None): min_salary = request.query_params.get('min_salary', None) + print(min_salary) max_salary = request.query_params.get('max_salary', None) + print(max_salary) localization = request.query_params.get('localization', None) + print(localization) name = request.query_params.get('name', None) + print(name) if min_salary is not None and min_salary != '': min_salary = int(min_salary) if max_salary is not None and max_salary != '': @@ -95,6 +99,7 @@ class JobOfferListView(APIView): name = None categories = request.query_params.getlist('categories', None) + print(categories) filters = { 'min_salary__gte': min_salary,