Use custom Person views from tailbone-corepos

This commit is contained in:
Lance Edgar 2020-03-16 19:47:17 -05:00
parent f1a01af3c9
commit 366594c53a

View file

@ -1,14 +1,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8; -*-
""" """
Person views Person views
""" """
from __future__ import unicode_literals, absolute_import
from tailbone.views import people as base from tailbone.views import people as base
from tailbone_corepos.views import people as corepos_base
class PeopleView(base.PeopleView): class PersonView(corepos_base.PersonView):
""" """
Prevent edit/delete for Chuck Norris Prevent edit/delete for Chuck Norris
""" """
@ -27,5 +26,5 @@ def includeme(config):
config.add_view(base.PeopleAutocomplete, route_name='people.autocomplete', config.add_view(base.PeopleAutocomplete, route_name='people.autocomplete',
renderer='json', permission='people.list') renderer='json', permission='people.list')
PeopleView.defaults(config) PersonView.defaults(config)
base.PersonNoteView.defaults(config) base.PersonNoteView.defaults(config)