Skip to content

Determination tags

hypha.apply.determinations.templatetags.determination_tags

register module-attribute

register = Library()

show_determination_button

show_determination_button(user, submission)
Source code in hypha/apply/determinations/templatetags/determination_tags.py
@register.filter
def show_determination_button(user, submission):
    try:
        return can_edit_determination(
            user, submission.determinations.active(), submission
        )
    except ObjectDoesNotExist:
        return can_create_determination(user, submission)