Fix some route names.
This commit is contained in:
parent
165c105b96
commit
707b933553
|
@ -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''
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue