Skip to content

tools

django_spire.contrib.navigation.tools

form_action_name

Source code in django_spire/contrib/navigation/tools.py
def form_action_name(has_pk: bool) -> str:
    return 'Edit' if has_pk else 'Create'