19 lines
542 B
Python
19 lines
542 B
Python
# -*- coding: utf-8; -*-
|
|
"""
|
|
Department views
|
|
"""
|
|
|
|
from tailbone.views import departments as base
|
|
# NOTE: the main point of this module is to bring this in
|
|
from tailbone_corepos.views.departments import DepartmentView
|
|
|
|
|
|
def includeme(config):
|
|
|
|
# autocomplete
|
|
config.add_route('departments.autocomplete', '/departments/autocomplete')
|
|
config.add_view(base.DepartmentsAutocomplete, route_name='departments.autocomplete',
|
|
renderer='json', permission='departments.list')
|
|
|
|
DepartmentView.defaults(config)
|