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(), }
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(), }