mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
PEP fixes
This commit is contained in:
@ -197,11 +197,6 @@ class PartList(generics.ListCreateAPIView):
|
|||||||
|
|
||||||
def get_serializer(self, *args, **kwargs):
|
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
|
# Ensure the request context is passed through
|
||||||
kwargs['context'] = self.get_serializer_context()
|
kwargs['context'] = self.get_serializer_context()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user