Update 'suitablephones/views.py'
This commit is contained in:
parent
bc12a30f1c
commit
946a717ff6
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue