When you iterate using for tag in Django template, it provides a context
for counting the loops which you can use it like



{{ forloop.count }}

On Sun, 16 Aug 2020, 09:43 neeraj garg, <neeraj....@gmail.com> wrote:

> You can put loop counter.
>
> On Sun, Aug 16, 2020, 9:29 AM kushal....@gmail.com <
> kushal.neu1...@gmail.com> wrote:
>
>> Greeting all, I want to put Serial Number instead of ID. How can i make
>> dynamic SN in view. Thanks.
>>
>> [image: Capture.PNG]
>>
>> --
>> 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/643e5056-b0a8-466d-8197-89c9982ec187n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/643e5056-b0a8-466d-8197-89c9982ec187n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CAGR%2BspdGmbHVauzH6nYQxBqg3YZ42367_XYSKC42ZLD8jj1VxQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGR%2BspdGmbHVauzH6nYQxBqg3YZ42367_XYSKC42ZLD8jj1VxQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAJW_r64PyKF_emAeU1kQyHN0qWS%3DNb3GQTZJtQS7C%2BernwSNUg%40mail.gmail.com.

Reply via email to