Refactor ordering worksheet to use shared logic
This commit is contained in:
parent
b529a005d8
commit
1b059c5293
4 changed files with 12 additions and 28 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue