Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
risufaj committed Sep 18, 2018
1 parent 2195b8e commit 8ae4c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library_sample_shared/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
ReadLengthSerializer,
ConcentrationMethodSerializer,
)
from django.conf import settings

Request = apps.get_model('request', 'Request')

Expand Down Expand Up @@ -137,6 +138,7 @@ def get_queryset(self):
na_type = self.request.query_params.get('type', None)
if na_type is not None:
queryset = queryset.filter(type=na_type)
queryset = queryset.filter(status=settings.NON_OBSOLETE)
return queryset


Expand Down

0 comments on commit 8ae4c4b

Please sign in to comment.