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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a48b871b-4015-4e61-bbdc-af11d1c49709n%40googlegroups.com.

Reply via email to