From ad405d077782719838ce97cbb7e8e8fc8d6165df Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 27 Jan 2021 22:23:41 -0600 Subject: [PATCH] Add autocomplete support when overriding Vendors view..ugh --- tailbone_corepos/views/vendors.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)