Bugfix: Select test report template

- Actually, two bugs!
This commit is contained in:
Oliver Walters 2020-08-26 14:29:49 +10:00
parent ee0df29af0
commit 54d0c4e8a8
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class TestReport(ReportTemplateBase):
Test if this report template matches a given StockItem objects
"""
filters = validateFilterString(self.part_filters)
filters = validateFilterString(self.filters)
items = StockItem.objects.filter(**filters)

View File

@ -237,7 +237,7 @@ class TestReportFormatForm(HelperForm):
for template in templates:
if template.matches_stock_item(self.stock_item):
choices.append(template)
choices.append((template.pk, template))
return choices