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: