API Reference

Utility Functions

relatives.utils.get_admin_url(obj)

Return admin URL for given object (raise NoReverseMatch on error)

Return function that takes an object and returns admin link to object

Arguments:

  • edit_text is displayed in link text
  • blank_text is displayed in unlinked text (when no admin link)

edit_text defaults to the object’s unicode representation and blank_text defaults to the object’s unicode representation if edit_text is None and an empty string otherwise

Return admin link to given object or blank text if no link

Equivalent to object_edit_link()(obj)

Template Tags