Refactor ordering worksheet to use shared logic

This commit is contained in:
Lance Edgar 2018-02-19 18:19:19 -06:00
parent b529a005d8
commit 1b059c5293
4 changed files with 12 additions and 28 deletions

View file

@ -245,7 +245,7 @@ class PurchaseView(MasterView):
url = self.request.route_url(routes[batch.mode], uuid=batch.uuid)
return tags.link_to(text, url)
items = [HTML.tag('li', c=render(batch)) for batch in batches]
items = [HTML.tag('li', c=[render(batch)]) for batch in batches]
return HTML.tag('ul', c=items)
def delete_instance(self, purchase):