mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 02:54:34 +00:00
Bug fix for recent SupplierPart API annotation (#3336)
This commit is contained in:
1 parent
653dcd4526
commit
6e2a2f2b2c
3 files changed
+23
-2
No files matched your search
@@ -284,7 +284,7 @@ class SupplierPartSerializer(InvenTreeModelSerializer):
|
||||
"""
|
||||
|
||||
queryset = queryset.annotate(
|
||||
in_stock=part.filters.annotate_total_stock(reference='part__')
|
||||
in_stock=part.filters.annotate_total_stock()
|
||||
)
|
||||
|
||||
return queryset
|
||||
|
||||
Reference in new issue
Block a user