From 366594c53a032d36f186ae35199b246c48cea7c3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 16 Mar 2020 19:47:17 -0500 Subject: [PATCH] Use custom Person views from tailbone-corepos --- rattail_demo/web/views/people.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rattail_demo/web/views/people.py b/rattail_demo/web/views/people.py index 07adcdf..b7f8b6a 100644 --- a/rattail_demo/web/views/people.py +++ b/rattail_demo/web/views/people.py @@ -1,14 +1,13 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- """ Person views """ -from __future__ import unicode_literals, absolute_import - 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 """ @@ -27,5 +26,5 @@ def includeme(config): config.add_view(base.PeopleAutocomplete, route_name='people.autocomplete', renderer='json', permission='people.list') - PeopleView.defaults(config) + PersonView.defaults(config) base.PersonNoteView.defaults(config)