mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
85a40ec418
commit
9cf372f633
@ -371,7 +371,6 @@ class Part(MPTTModel):
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def get_context_data(self, request, **kwargs):
|
||||
"""
|
||||
Return some useful context data about this part for template rendering
|
||||
|
@ -351,7 +351,7 @@ class StockLocationList(generics.ListCreateAPIView):
|
||||
loc = StockLocation.objects.get(pk=exclude_tree)
|
||||
|
||||
queryset = queryset.exclude(
|
||||
pk__in=[l.pk for l in loc.get_descendants(include_self=True)]
|
||||
pk__in=[subloc.pk for subloc in loc.get_descendants(include_self=True)]
|
||||
)
|
||||
|
||||
except (ValueError, StockLocation.DoesNotExist):
|
||||
|
Loading…
Reference in New Issue
Block a user