Misc. cleanup for Python 3
This commit is contained in:
parent
189bc1faa8
commit
ee35cc6f22
24 changed files with 49 additions and 36 deletions
2
tailbone/views/vendors/catalogs.py
vendored
2
tailbone/views/vendors/catalogs.py
vendored
|
@ -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)
|
||||
|
|
4
tailbone/views/vendors/invoices.py
vendored
4
tailbone/views/vendors/invoices.py
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue