Example #1
0
 def get_context_data(self, **kwargs):
     return {
         'seo': views.get_seo(),
         'banner_products': Product.get_banner(),
         'other_products': Product.get_other(),
         'other_stock': Category.get_other(),
     }
Example #2
0
def get_default_context(catalog=None):
    add_root = None
    if not catalog:
        catalog = globals.catalog
    else:
        add_root = globals.catalog

    return {
        'seo': views.get_seo(catalog, add_root),
        'current': catalog,
        'catalog_menu': models.Catalog.get_top_level(),
    }