On Sat, May 2, 2020 at 10:37 AM Kushal Neupane <mkusha...@gmail.com> wrote:
> Not primary key to use here. > There might be different data. > I am trying to do serial numbers as total numbers in the list. Thank you > > On Sat, May 2, 2020, 23:20 Jorge Gimeno <jlgimen...@gmail.com> wrote: > >> >> >> On Sat, May 2, 2020 at 9:03 AM Kushal Neupane <mkusha...@gmail.com> >> wrote: >> >>> How to make Serail Number 1, 2, 3 and respective in template? Help me. >>> Thank you. >>> >>> -- >>> 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/3842baeb-b054-482a-b127-ae5c160493ca%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/3842baeb-b054-482a-b127-ae5c160493ca%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> Models in Python have an autoincrementing primary key (unless you have >> turned that off). See >> https://docs.djangoproject.com/en/3.0/topics/db/models/#automatic-primary-key-fields >> >> -Jorge >> >> -- >> 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/CANfN%3DK-HEni_1DQL7CKrE3nWtu%2BR1WgKmaAoMpPjiDsUd%3Daq6w%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CANfN%3DK-HEni_1DQL7CKrE3nWtu%2BR1WgKmaAoMpPjiDsUd%3Daq6w%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/CAFWyajUO4aw9qdb-zx1j_DYbFMDS2WrTzs8zVd0_tB3xYjNNaw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFWyajUO4aw9qdb-zx1j_DYbFMDS2WrTzs8zVd0_tB3xYjNNaw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > If you're looking to use the template to generate line numbers, I would start with the linenumbers template tag: https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#linenumbers -Jorge -- 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/CANfN%3DK-pV4zjDzbYGzVx97K3Xr%2BGwMJGn%2B4Zfc-kb4tK7zE0iw%40mail.gmail.com.