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 :
<ul class="a big">
<li class="a">1</li>
<li class="a">2</li>
<li class="a">3</li>
<li class="a">4</li>
<li class="a">5</li>
<li class="extra"></li>
</ul>
so i call the number from django admin with
{% for i in numb %}
<li class="a">{{i}}</li>
<li class="a">{{i}}</li>
<li class="a">{{i}}</li>
<li class="a">{{i}}</li>
<li class="a">{{i}}</li>
<li class="extra">{{i}}</li>
{% endfor %}
I expect the html will showing :
123456 the number split by the li class
but the current problem is, the number showing all in every <li>, be like
123456 123456 123456 123456 123456 123456
I hope somebody will help me, Thank you
Regards