示例#1
0
    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)
示例#2
0
文件: views.py 项目: yvesc/doorsale
    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)
示例#3
0
 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)
示例#4
0
    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)