Skip to content

Flag tags

hypha.apply.flags.templatetags.flag_tags

register module-attribute

register = Library()

flagged_by

flagged_by(submission, user)
Source code in hypha/apply/flags/templatetags/flag_tags.py
6
7
8
@register.filter
def flagged_by(submission, user):
    return submission.flagged_by(user)

flagged_staff

flagged_staff(submission)
Source code in hypha/apply/flags/templatetags/flag_tags.py
@register.filter
def flagged_staff(submission):
    return submission.flagged_staff