From 707b933553479f4b70cbd9aa0381f7cec80660e0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 8 Dec 2015 16:18:29 -0600 Subject: [PATCH] Fix some route names. --- tailbone/forms/renderers/people.py | 4 ++-- tailbone/views/labels.py | 2 +- tailbone/views/users.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tailbone/forms/renderers/people.py b/tailbone/forms/renderers/people.py index c6c6e5fc..46c20902 100644 --- a/tailbone/forms/renderers/people.py +++ b/tailbone/forms/renderers/people.py @@ -54,7 +54,7 @@ class PersonFieldLinkRenderer(PersonFieldRenderer): if person: return tags.link_to( unicode(person), - self.request.route_url('person.read', uuid=person.uuid)) + self.request.route_url('people.view', uuid=person.uuid)) return u'' @@ -76,7 +76,7 @@ class CustomerFieldLinkRenderer(CustomerFieldRenderer): if customer: return tags.link_to( unicode(customer), - self.request.route_url('customer.read', uuid=customer.uuid)) + self.request.route_url('customers.view', uuid=customer.uuid)) return u'' diff --git a/tailbone/views/labels.py b/tailbone/views/labels.py index 7296d338..fbc2dedb 100644 --- a/tailbone/views/labels.py +++ b/tailbone/views/labels.py @@ -102,7 +102,7 @@ class LabelProfileVersionView(VersionView): parent_class = model.LabelProfile model_title = "Label Profile" route_model_list = 'label_profiles' - route_model_view = 'label_profile.read' + route_model_view = 'labelprofiles.view' def printer_settings(request): diff --git a/tailbone/views/users.py b/tailbone/views/users.py index 7e43ce04..a8542ded 100644 --- a/tailbone/views/users.py +++ b/tailbone/views/users.py @@ -179,7 +179,7 @@ class UserVersionView(VersionView): View which shows version history for a user. """ parent_class = model.User - route_model_view = 'user.read' + route_model_view = 'users.view' def includeme(config):