Add MasterView.render_product(), fix edit for pricing batch row

This commit is contained in:
Lance Edgar 2018-10-23 17:20:47 -05:00
parent b9da7e1b12
commit 2bd107056c
7 changed files with 30 additions and 35 deletions

View file

@ -198,14 +198,6 @@ class VendorCatalogsView(FileBatchMasterView):
super(VendorCatalogsView, self).configure_row_form(f)
f.set_renderer('product', self.render_product)
def render_product(self, row, field):
product = row.product
if not product:
return ""
text = six.text_type(product)
url = self.request.route_url('products.view', uuid=product.uuid)
return tags.link_to(text, url)
def template_kwargs_create(self, **kwargs):
parsers = self.get_parsers()
for parser in parsers: