from django.views.generic import TemplateView
from toko.apps.products.models import Product


class HomeView(TemplateView):
    template_name = 'pages/home.html'

    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        context['featured_products'] = Product.objects \
            .prefetch_related('photos').featured()
        return context

744c53c51e0dc2ae98f1f7a72c88a0cb6dbac056
<mask token>

<mask token>


class HomeView(TemplateView):
    <mask token>
    <mask token>

<mask token>


class HomeView(TemplateView):
    template_name = 'pages/home.html'

    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        context['featured_products'] = Product.objects.prefetch_related(
            'photos').featured()
        return context

from django.views.generic import TemplateView
from toko.apps.products.models import Product


class HomeView(TemplateView):
    template_name = 'pages/home.html'

    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        context['featured_products'] = Product.objects.prefetch_related(
            'photos').featured()
        return context

from django.views.generic import TemplateView
from toko.apps.products.models import Product


class HomeView(TemplateView):
    template_name = 'pages/home.html'

    def get_context_data(self, **kwargs):
        context = super(HomeView, self).get_context_data(**kwargs)
        context['featured_products'] = Product.objects \
            .prefetch_related('photos').featured()
        return context
