You would obviously want a counter to use in the template.  And I presume a
for loop will not do ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar
<http://about.me/maninder.s.kumar?promo=email_sig>




On Mon, Feb 10, 2020 at 2:33 PM Bruckner de Villiers <
bruckner.devilli...@gmail.com> wrote:

> Brajesh,
>
> I presume that you want the counter to auto-increment.  The gurus are
> recommending AutoField, but I can’t get it to work yet and the Django docs
> are a bit vague on the subect.
>
> Good luck.
>
>
>
> Bruckner de Villiers
>
> 083 625 1086
>
>
>
> *From: *<django-users@googlegroups.com> on behalf of BRAJESH KUMAR <
> brajesh.cal...@gmail.com>
> *Reply to: *<django-users@googlegroups.com>
> *Date: *Sunday, 09 February 2020 at 20:45
> *To: *"django-users@googlegroups.com" <django-users@googlegroups.com>
> *Subject: *to add counter to an object of a table
>
>
>
> Hi ,
>
> I have a product details db class with few details for each object of that
> class, need help to add a counter.
>
>
>
> Thanks,
>
> Brajesh
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> --
> 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/5e405315.1c69fb81.6e215.a4ec%40mx.google.com
> <https://groups.google.com/d/msgid/django-users/5e405315.1c69fb81.6e215.a4ec%40mx.google.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/3467A551-64FD-4D20-9174-3C4667A1224B%40gmail.com
> <https://groups.google.com/d/msgid/django-users/3467A551-64FD-4D20-9174-3C4667A1224B%40gmail.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/CABOHK3RmmiGw5aey4CAdvsoj8d2iqoj%3DED2RxZa8WD%3Dyq7mRpQ%40mail.gmail.com.

Reply via email to