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: if person:
return tags.link_to( return tags.link_to(
unicode(person), unicode(person),
self.request.route_url('person.read', uuid=person.uuid)) self.request.route_url('people.view', uuid=person.uuid))
return u'' return u''
@ -76,7 +76,7 @@ class CustomerFieldLinkRenderer(CustomerFieldRenderer):
if customer: if customer:
return tags.link_to( return tags.link_to(
unicode(customer), unicode(customer),
self.request.route_url('customer.read', uuid=customer.uuid)) self.request.route_url('customers.view', uuid=customer.uuid))
return u'' return u''

View file

@ -102,7 +102,7 @@ class LabelProfileVersionView(VersionView):
parent_class = model.LabelProfile parent_class = model.LabelProfile
model_title = "Label Profile" model_title = "Label Profile"
route_model_list = 'label_profiles' route_model_list = 'label_profiles'
route_model_view = 'label_profile.read' route_model_view = 'labelprofiles.view'
def printer_settings(request): def printer_settings(request):

View file

@ -179,7 +179,7 @@ class UserVersionView(VersionView):
View which shows version history for a user. View which shows version history for a user.
""" """
parent_class = model.User parent_class = model.User
route_model_view = 'user.read' route_model_view = 'users.view'
def includeme(config): def includeme(config):