2
0
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:
Oliver
2021-11-25 14:55:24 +11:00
parent e6dfe27c57
commit 4a90786296
3 changed files with 3 additions and 3 deletions

View File

@ -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):