def get(self, request): featured_products = Product.featured_products() recent_products = Product.recent_products(self.get_max_recent_arrivals()) return super(IndexView, self).get(request, featured_products=featured_products, recent_products=recent_products)
def get(self, request): featured_products = Product.featured_products() recent_products = Product.recent_products(MAX_RECENT_ARRIVALS) return super(IndexView, self).get(request, featured_products=featured_products, recent_products=recent_products)
def get(self, request): featured_products = Product.featured_products() recent_products = Product.recent_products( self.get_max_recent_arrivals()) return super(IndexView, self).get(request, featured_products=featured_products, recent_products=recent_products)