% from django.core.urlresolvers import reverse reqm = module.required_modules[0] course_id = module.system.course_id condition = module.condition %>
${reqm.display_name} must be % if 'attempted' in condition: attempted % else: completed % endif before this will become visible.