Source code for apps.widgets.help.rule.views

"""The view for the widget to display the rules of the challenge."""

from apps.widgets.help.models import HelpTopic


[docs]def supply(request, page_name): """ supply view_objects for widget rendering.""" _ = request _ = page_name rules = HelpTopic.objects.filter(category="rules", parent_topic__isnull=True) return { "rules": rules, }