From 946a717ff615bd753ce2862f7e999d7d4d71a2c3 Mon Sep 17 00:00:00 2001 From: d0c Date: Fri, 27 Jan 2023 17:25:48 +0100 Subject: [PATCH] Update 'suitablephones/views.py' --- suitablephones/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/suitablephones/views.py b/suitablephones/views.py index 0a791f6..40eb79c 100644 --- a/suitablephones/views.py +++ b/suitablephones/views.py @@ -13,6 +13,7 @@ class DeviceViewSet(viewsets.ModelViewSet): queryset = Device.objects.all() serializer_class = DeviceSerializer + #http://url/api/devices?megapixel=3 def get_queryset(self): megapixel = self.request.query_params.get('megapixel') if megapixel: