mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
PEP fixes
This commit is contained in:
parent
4a60da67fd
commit
a537b6df6e
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user