ReferenceΒΆ
- django_admin_helpers.links.admin_add_url(model: type[Model]) str
Get the URL to the admin add for a model.
- django_admin_helpers.links.admin_link_tag(instance: Model | None, label: StrOrPromise | None = None) SafeString
Make a link to a model instance in the admin.
- django_admin_helpers.links.admin_list_url(model: type[Model] | Model) str
Get the URL to the admin change list for a model.
- django_admin_helpers.links.admin_url(instance: Model) str
Get the URL to a model instance in the admin.
- django_admin_helpers.links.get_app_model_names(model: Model | type[Model]) tuple[str, str]
Get app label and model name from private meta attribute.
- django_admin_helpers.links.inline_button(url: str, label: StrOrPromise, mt: str = '0', mb: str = '1rem') str
Build a button to be inlined in the admin.
- django_admin_helpers.links.link_tag(url: str, label: StrOrPromise | None = None, blank: bool = False) SafeString
Build an HTML tag for a hyperlink.