コード例 #1
0
ファイル: views.py プロジェクト: MUDASSARHASHMI/doorsale
    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
ファイル: views.py プロジェクト: kawasaki2013/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)
コード例 #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)