Bugfix for stock report filter

This commit is contained in:
Oliver Walters 2020-12-15 11:57:52 +11:00
parent 980cb9522b
commit ef032d406f

View File

@ -193,6 +193,9 @@ class TestReport(ReportTemplateBase):
items = StockItem.objects.filter(**filters) items = StockItem.objects.filter(**filters)
# Ensure the provided StockItem object matches the filters
items = items.filter(pk=item.pk)
return items.exists() return items.exists()
def get_context_data(self, request): def get_context_data(self, request):