diff --git a/tailbone_corepos/views/vendors.py b/tailbone_corepos/views/vendors.py index 493010b..ced1c83 100644 --- a/tailbone_corepos/views/vendors.py +++ b/tailbone_corepos/views/vendors.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2020 Lance Edgar +# Copyright © 2010-2021 Lance Edgar # # This file is part of Rattail. # @@ -92,4 +92,11 @@ class VendorView(base.VendorsView): def includeme(config): + + # TODO: ugh + # autocomplete + config.add_route('vendors.autocomplete', '/vendors/autocomplete') + config.add_view(base.VendorsAutocomplete, route_name='vendors.autocomplete', + renderer='json', permission='vendors.list') + VendorView.defaults(config)