Changeset fdb63fc in tailbone-corepos


Ignore:
Timestamp:
08/02/2020 09:29:14 PM (3 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
0f90a37
Parents:
69585ad
Message:

Bring in default autocomplete views for customers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone_corepos/views/customers.py

    r69585ad rfdb63fc  
    8282
    8383def includeme(config):
     84
     85    # autocomplete
     86    # TODO: ugh
     87    config.add_route('customers.autocomplete', '/customers/autocomplete')
     88    config.add_view(base.CustomerNameAutocomplete, route_name='customers.autocomplete',
     89                    renderer='json', permission='customers.list')
     90    config.add_route('customers.autocomplete.phone', '/customers/autocomplete/phone')
     91    config.add_view(base.CustomerPhoneAutocomplete, route_name='customers.autocomplete.phone',
     92                    renderer='json', permission='customers.list')
     93
    8494    CustomerView.defaults(config)
Note: See TracChangeset for help on using the changeset viewer.