Fix some route names.

This commit is contained in:
Lance Edgar 2015-12-08 16:18:29 -06:00
parent 165c105b96
commit 707b933553
3 changed files with 4 additions and 4 deletions

View file

@ -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''

View file

@ -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):

View file

@ -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):