@register.simple_tag<EOL>def soldOutForRole(event, role):
if not isinstance(event, Event) or not isinstance(role, DanceRole):<EOL><INDENT>return None<EOL><DEDENT>return event.soldOutForRole(role)<EOL>
This tag allows one to determine whether any event is sold out for any
particular role.