from django.db import models
from django.shortcuts import render
from django.views import View
from django.views.generic.list import ListView
from django.views.generic import DetailView
from store.models import Product

class HomeView(ListView):
    template_name = "index.html"
    model = Product
    context_object_name = "products"

    def get_queryset(self):
        qs = super().get_queryset()
        qs = qs.filter(is_available=True)
        return qs
    



1dea2d9b12c14720161463f694ebbf6fe7d92f3a
<mask token>


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

<mask token>


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

    def get_queryset(self):
        qs = super().get_queryset()
        qs = qs.filter(is_available=True)
        return qs

<mask token>


class HomeView(ListView):
    template_name = 'index.html'
    model = Product
    context_object_name = 'products'

    def get_queryset(self):
        qs = super().get_queryset()
        qs = qs.filter(is_available=True)
        return qs

from django.db import models
from django.shortcuts import render
from django.views import View
from django.views.generic.list import ListView
from django.views.generic import DetailView
from store.models import Product


class HomeView(ListView):
    template_name = 'index.html'
    model = Product
    context_object_name = 'products'

    def get_queryset(self):
        qs = super().get_queryset()
        qs = qs.filter(is_available=True)
        return qs

from django.db import models
from django.shortcuts import render
from django.views import View
from django.views.generic.list import ListView
from django.views.generic import DetailView
from store.models import Product

class HomeView(ListView):
    template_name = "index.html"
    model = Product
    context_object_name = "products"

    def get_queryset(self):
        qs = super().get_queryset()
        qs = qs.filter(is_available=True)
        return qs
    


