Add some context data to build views

This commit is contained in:
Oliver Walters 2019-06-13 21:32:37 +10:00
parent 2b74a0ed2c
commit a37a2120fa

View File

@ -275,6 +275,7 @@ class BuildDetail(DetailView):
build = self.get_object()
ctx['bom_price'] = build.part.get_price_info(build.quantity, buy=False)
ctx['BuildStatus'] = BuildStatus
return ctx
@ -296,6 +297,7 @@ class BuildAllocate(DetailView):
context['part'] = part
context['bom_items'] = bom_items
context['BuildStatus'] = BuildStatus
context['bom_price'] = build.part.get_price_info(build.quantity, buy=False)