hero_slider/templatetags/hero_slider_tags.py
def get_slider_items(context, amount=None):
    """Returns the published slider items."""
    req = context.get('request')
    qs = SliderItem.objects.published(req).order_by('position')
    if amount:
        qs = qs[:amount]
    return qs
def get_slider_items(context, amount=None):
    """Returns the published slider items."""
    req = context.get('request')
    qs = SliderItem.objects.published(req).order_by('position')
    if amount:
        qs = qs[:amount]
    return qs
def get_slider_items ( context , amount = None ) : req = context . get ( 'request' ) qs = SliderItem . objects . published ( req ) . order_by ( 'position' ) if amount : qs = qs [ : amount ] return qs
Returns the published slider items.
Returns the published slider items .