Remove unwanted autocomplete view config

This commit is contained in:
Lance Edgar 2021-10-01 10:29:27 -04:00
parent c9dace8a26
commit 39ed58f75c
4 changed files with 0 additions and 31 deletions

View file

@ -81,14 +81,4 @@ class CustomerView(base.CustomerView):
def includeme(config):
# autocomplete
# TODO: ugh
config.add_route('customers.autocomplete', '/customers/autocomplete')
config.add_view(base.CustomerNameAutocomplete, route_name='customers.autocomplete',
renderer='json', permission='customers.list')
config.add_route('customers.autocomplete.phone', '/customers/autocomplete/phone')
config.add_view(base.CustomerPhoneAutocomplete, route_name='customers.autocomplete.phone',
renderer='json', permission='customers.list')
CustomerView.defaults(config)

View file

@ -93,13 +93,4 @@ class PersonView(base.PersonView):
def includeme(config):
# autocomplete
config.add_route('people.autocomplete', '/people/autocomplete')
config.add_view(base.PeopleAutocomplete, route_name='people.autocomplete',
renderer='json', permission='people.list')
config.add_route('people.autocomplete.employees', '/people/autocomplete/employees')
config.add_view(base.PeopleEmployeesAutocomplete, route_name='people.autocomplete.employees',
renderer='json', permission='people.list')
PersonView.defaults(config)

View file

@ -122,11 +122,6 @@ class ProductView(base.ProductView):
def includeme(config):
# TODO: getting pretty tired of copy/pasting this extra config...
config.add_route('products.autocomplete', '/products/autocomplete')
config.add_view(base.ProductsAutocomplete, route_name='products.autocomplete',
renderer='json', permission='products.list')
# TODO: getting pretty tired of copy/pasting this extra config...
config.add_route('products.print_labels', '/products/labels')
config.add_view(base.print_labels, route_name='products.print_labels',

View file

@ -92,11 +92,4 @@ class VendorView(base.VendorView):
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)