Hi
Thank you for response
anyway I have trying your tips, but It not works
On Monday, May 30, 2022 at 8:08:02 PM UTC+7 chir...@gmail.com wrote:
> Hi,
>
> As per my understanding, the thing you want to achieve can be done using
> the below code.
>
>
> {% for i in number %}
>{{i}}
>
Hi,
As per my understanding, the thing you want to achieve can be done using
the below code.
{% for i in number %}
{{i}}
{% endfor %}
In that way, if the queryset contains 1 to 6 integers, you will loop over
them and create 6 li items and place it inside ul tag element.
Hi Everyone
I wanna question about the integer would input by models, with some class
ClassName
numb = models.IntegerField()
and the views is :
number = ClassName.objects.values_list('numb', flat=True).distinct()
then the templates is :
1
2
3
4
5
so i call the number from django admin with
{
3 matches
Mail list logo