예제 #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
파일: views.py 프로젝트: bshubham80/Django
    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)