Fix rendering of "handheld batches" field for inventory batch view
This commit is contained in:
parent
79be69f8c1
commit
2185182eee
|
@ -263,11 +263,11 @@ class InventoryBatchView(BatchMasterView):
|
||||||
f.remove_field('complete')
|
f.remove_field('complete')
|
||||||
|
|
||||||
def render_handheld_batches(self, inventory_batch, field):
|
def render_handheld_batches(self, inventory_batch, field):
|
||||||
items = ''
|
items = []
|
||||||
for handheld in inventory_batch._handhelds:
|
for handheld in inventory_batch._handhelds:
|
||||||
text = handheld.handheld.id_str
|
text = handheld.handheld.id_str
|
||||||
url = self.request.route_url('batch.handheld.view', uuid=handheld.handheld_uuid)
|
url = self.request.route_url('batch.handheld.view', uuid=handheld.handheld_uuid)
|
||||||
items += HTML.tag('li', c=tags.link_to(text, url))
|
items.append(HTML.tag('li', c=[tags.link_to(text, url)]))
|
||||||
return HTML.tag('ul', c=items)
|
return HTML.tag('ul', c=items)
|
||||||
|
|
||||||
def row_editable(self, row):
|
def row_editable(self, row):
|
||||||
|
|
Loading…
Reference in a new issue