year to do

This commit is contained in:
d0c 2023-06-02 22:04:16 +02:00
parent 93575eb6c8
commit ff3809e80d

View file

@ -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)