@register.filter
def recent_products_list(count):
    """Get a list of recent products"""
    try:
        ct = int(count)
    except __HOLE__:
        ct = config_value('PRODUCT','NUM_PAGINATED')

    query = Product.objects.recent_by_site()
    return query[:ct]
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/templatetags/satchmo_product.py/recent_products_list