PEP fixes

This commit is contained in:
Oliver Walters 2020-05-02 09:50:18 +10:00
parent 4a60da67fd
commit a537b6df6e

@ -197,11 +197,6 @@ class PartList(generics.ListCreateAPIView):
def get_serializer(self, *args, **kwargs):
try:
cat_detail = str2bool(self.request.query_params.get('category_detail', False))
except AttributeError:
cat_detail = None
# Ensure the request context is passed through
kwargs['context'] = self.get_serializer_context()