diff --git a/tailbone/views/master.py b/tailbone/views/master.py index 26cc5ab9..a11311ff 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -850,6 +850,14 @@ class MasterView(View): url = self.request.route_url('reportcodes.view', uuid=report.uuid) return tags.link_to(text, url) + def render_person(self, obj, field): + person = getattr(obj, field) + if not person: + return "" + text = six.text_type(person) + url = self.request.route_url('people.view', uuid=person.uuid) + return tags.link_to(text, url) + def before_create_flush(self, obj, form): pass