hero_slider/templatetags/hero_slider_tags.py
def render_hero_slider(context):
    """
    Renders the hero slider.

    """
    req = context.get('request')
    qs = SliderItem.objects.published(req).order_by('position')
    return {
        'slider_items': qs,
    }
def render_hero_slider(context):
    req = context.get('request')
    qs = SliderItem.objects.published(req).order_by('position')
    return {
        'slider_items': qs,
    }
def render_hero_slider ( context ) : req = context . get ( 'request' ) qs = SliderItem . objects . published ( req ) . order_by ( 'position' ) return { 'slider_items' : qs , }
Renders the hero slider.
Renders the hero slider .