72a4c347d8
actually our "custom" data model is just rattail + rattail-corepos
19 lines
496 B
Python
19 lines
496 B
Python
# -*- coding: utf-8; -*-
|
|
"""
|
|
Vendor views
|
|
"""
|
|
|
|
from tailbone.views import vendors as base
|
|
# NOTE: the main point of this module is to bring this in
|
|
from tailbone_corepos.views.vendors import VendorView
|
|
|
|
|
|
def includeme(config):
|
|
|
|
# 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)
|