def admin_link(self): """Return a link to the resource admin page. Returns: str. link to the resource's admin page. """ return linked_unicode(self.leaf)
def children_link(self): """Return links to the sub test's admin page. Returns: str. links to the sub test's admin page. """ return ', '.join( linked_unicode(sub_test) for sub_test in self.get_sub_tests_data())
def parent_link(self): """Return a link to the test's parent's admin page. Returns: str. link to the test's parent's admin page. """ if self.parent is None: return '' return linked_unicode(self.get_parent())
def admin_link(self): """Return a link to the test admin page. Returns: str. link to the test admin page. """ if self.id is None: return "" return linked_unicode(self)