You need to make it iterable, so there are two ways to do it.
One is to let it become a list with single object while another one is to
use filter so the result will be a QuerySet.
In your case will be the first one.
Stéphane Manguette於 2019年1月15日星期二 UTC+8上午9時26分14秒寫道:
>
> Hello Django community
Hello Django community,
I'm pretty new to Django and I'm getting stuck on the following issue.
I have a model defined as follows :
class temp_db(models.Model):
date = models.DateTimeField()
tempext = models.DecimalField(max_digits=4, decimal_places=2)
tempeau = models.DecimalField(max_digits=4,
2 matches
Mail list logo