Misc. cleanup for Python 3

This commit is contained in:
Lance Edgar 2018-02-12 14:41:40 -06:00
parent 189bc1faa8
commit ee35cc6f22
24 changed files with 49 additions and 36 deletions

View file

@ -106,7 +106,7 @@ class VendorCatalogsView(FileBatchMasterView):
g.sorters['vendor'] = g.make_sorter(model.Vendor.name)
def get_instance_title(self, batch):
return unicode(batch.vendor)
return six.text_type(batch.vendor)
def configure_form(self, f):
super(VendorCatalogsView, self).configure_form(f)

View file

@ -26,6 +26,8 @@ Views for maintaining vendor invoices
from __future__ import unicode_literals, absolute_import
import six
from rattail.db import model, api
from rattail.vendors.invoices import iter_invoice_parsers, require_invoice_parser
@ -83,7 +85,7 @@ class VendorInvoicesView(FileBatchMasterView):
]
def get_instance_title(self, batch):
return unicode(batch.vendor)
return six.text_type(batch.vendor)
def configure_grid(self, g):
super(VendorInvoicesView, self).configure_grid(g)