Fix route sequence for people autocomplete

This commit is contained in:
Lance Edgar 2017-03-24 17:29:34 -05:00
parent d373eb9ac1
commit e37e17adf0

View file

@ -155,7 +155,6 @@ class PeopleEmployeesAutocomplete(PeopleAutocomplete):
def includeme(config):
PeopleView.defaults(config)
# autocomplete
config.add_route('people.autocomplete', '/people/autocomplete')
@ -164,3 +163,5 @@ def includeme(config):
config.add_route('people.autocomplete.employees', '/people/autocomplete/employees')
config.add_view(PeopleEmployeesAutocomplete, route_name='people.autocomplete.employees',
renderer='json', permission='people.list')
PeopleView.defaults(config)