diff --git a/rattail_demo/web/views/__init__.py b/rattail_demo/web/views/__init__.py index c23ec2d..77c892f 100644 --- a/rattail_demo/web/views/__init__.py +++ b/rattail_demo/web/views/__init__.py @@ -30,7 +30,7 @@ def includeme(config): config.include('tailbone.views.subdepartments') config.include('rattail_demo.web.views.tempmon') config.include('rattail_demo.web.views.upgrades') - config.include('rattail_demo.web.views.users') + config.include('tailbone.views.users') config.include('rattail_demo.web.views.vendors') # core-pos views diff --git a/rattail_demo/web/views/users.py b/rattail_demo/web/views/users.py deleted file mode 100644 index 0cdf5d4..0000000 --- a/rattail_demo/web/views/users.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8; -*- -""" -User views -""" - -from __future__ import unicode_literals, absolute_import - -from tailbone.views import users as base - - -class UsersView(base.UsersView): - """ - Prevent edit/delete for 'chuck' - """ - - def editable_instance(self, user): - return user.username not in ('chuck', 'demo') - - def deletable_instance(self, user): - return user.username not in ('chuck', 'demo') - - -def includeme(config): - UsersView.defaults(config) - base.UserEventsView.defaults(config)