from django.db.models import Min, Max

from shop.models import Product


def get_filters(request):

    minMaxPrice = Product.objects.aggregate(Min('price'), Max('price'))

    data = {
        'minMaxPrice': minMaxPrice,
    }

    return data
454389506ee34537a716c892d5d05d60ffc52fef
<mask token>

<mask token>


def get_filters(request):
    minMaxPrice = Product.objects.aggregate(Min('price'), Max('price'))
    data = {'minMaxPrice': minMaxPrice}
    return data

from django.db.models import Min, Max
from shop.models import Product


def get_filters(request):
    minMaxPrice = Product.objects.aggregate(Min('price'), Max('price'))
    data = {'minMaxPrice': minMaxPrice}
    return data

from django.db.models import Min, Max

from shop.models import Product


def get_filters(request):

    minMaxPrice = Product.objects.aggregate(Min('price'), Max('price'))

    data = {
        'minMaxPrice': minMaxPrice,
    }

    return data