Beispiel #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)
Beispiel #2
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)
Beispiel #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)
Beispiel #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)