mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-09 07:00:56 +00:00
PEP code style fixes
This commit is contained in:
@ -1071,7 +1071,7 @@ class PartRelatedList(generics.ListCreateAPIView):
|
||||
if part is not None:
|
||||
try:
|
||||
part = Part.objects.get(pk=part)
|
||||
|
||||
|
||||
queryset = queryset.filter(Q(part_1=part) | Q(part_2=part))
|
||||
|
||||
except (ValueError, Part.DoesNotExist):
|
||||
|
Reference in New Issue
Block a user