year to do
This commit is contained in:
parent
93575eb6c8
commit
ff3809e80d
1 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,11 @@ class DeviceViewSet(viewsets.ModelViewSet):
|
|||
self.queryset = self.queryset.filter(soc__icontains=soc)
|
||||
if version:
|
||||
self.queryset = self.queryset.filter(versions__icontains=version)
|
||||
#if maintainers:
|
||||
|
||||
#Add year filter
|
||||
#year = self.request.query_params.get('year')
|
||||
#if year:
|
||||
# self.queryset = self.queryset.filter(year__icontains=year)
|
||||
if short_view:
|
||||
self.serializer_class = DeviceSerializerShort
|
||||
self.queryset = self.queryset.filter(maintainers__len__gt=0)
|
||||
|
|
Loading…
Reference in a new issue