# can't multiply sequence by non-int of type 'QuerySet'

**URL:** <https://forum.djangoproject.com/t/cant-multiply-sequence-by-non-int-of-type-queryset/17100>\
**Category:** Forms & APIs\
**Created:** [November 17, 2022, 3:27pm UTC](https://forum.djangoproject.com/t/cant-multiply-sequence-by-non-int-of-type-queryset/17100 "2022-11-17T15:27:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![3rdmatana](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/3rdmatana/32/10917_2.png) [@3rdmatana](https://forum.djangoproject.com/u/3rdmatana)\
**Post date:** [November 17, 2022, 3:27pm UTC](https://forum.djangoproject.com/t/cant-multiply-sequence-by-non-int-of-type-queryset/17100/1 "2022-11-17T15:27:50Z")

</div>

I just start learn django, and i want to ask to solve my problem

here my models.py

```auto
class LotSell(models.Model):
    rate = models.DecimalField(max_digits=5, decimal_places=4)

```

at django admin input with value 0,0666 or something

views.py

```auto
def result(request):
    price_buyer = request.GET['price_buyer']
    temp_price = LotSell.objects.values_list('rate')
    tot_price = price_buyer * temp_price
    data = {
        'tot_price': tot_price,
    }
    return render(request, 'resultsell.html', data)

```

resultsell.html

```auto
<body>
{{tot_price}}
</body>

```

index.html

```auto
<form action="{% url 'resultsell %}" method="get">
{% csrf_token %}
<input type="text" name="price_buyer">
<br>
<button type="submit"> Submit</button
</form>

```

in the end, i want to showing to user with the total price by: rate (input by admin as decimal or percentage) multiply the price\_buyer where input by user

Thank you

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 17, 2022, 3:47pm UTC](https://forum.djangoproject.com/t/cant-multiply-sequence-by-non-int-of-type-queryset/17100/2 "2022-11-17T15:47:44Z")

</div>

> [@3rdmatana](#):
>
> `LotSell.objects.values_list('rate')`

This query returns a queryset containing a list of lists. You need to access the individual values to do anything with those values.

I would suggest you experiment with this in the Django shell to get used to working with data like this.
