Expose 'part' to the TestReport interface

This commit is contained in:
Oliver Walters 2020-05-22 23:08:15 +10:00
parent 5245442b11
commit 34b40d205e

View File

@ -218,6 +218,7 @@ class TestReport(ReportTemplateBase, PartFilterMixin):
def get_context_data(self, request): def get_context_data(self, request):
return { return {
'stock_item': self.stock_item, 'stock_item': self.stock_item,
'part': self.stock_item.part,
'results': self.stock_item.testResultMap(), 'results': self.stock_item.testResultMap(),
'result_list': self.stock_item.testResultList() 'result_list': self.stock_item.testResultList()
} }