def input_types_table(self, instance): input_types = list(instance.input_types.all()) html_args = [] html = [] if len(input_types) > 1: html.append('<table>') for input_type in input_types: html.append('<tr>') html.append('<td>') html.append(admin_change_link(input_type)) html.append('</td>') html.append('</tr>') html.append('</table>') elif input_types: return admin_change_link(input_types[0]) return format_html("\n".join(html), *html_args)
def output_type_link(self, instance): return admin_change_link(instance.output_type)
def responsibility_link(self, instance): return admin_change_link(instance.responsibility)
def deliverable_link(self, instance): return admin_change_link(instance.deliverable)
def role_link(self, instance): return admin_change_link(instance.role, label=lambda role: role.name)
def format_link(self, instance): return admin_change_link(instance.format)
def facet_link(self, instance): return admin_change_link(instance.facet)
def group_link(self, instance): return admin_change_link(instance.group)
def organization_link(self, instance): return admin_change_link(instance.organization)