"""
views for Help FAQ widget
"""

from managers.help_mgr.models import HelpTopic

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


"""
views for Help FAQ widget
"""

from apps.managers.help_mgr.models import HelpTopic

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


Edit format.