How to create a function like Count

14 views
Skip to first unread message

Saurabh Adhikary

unread,
May 26, 2020, 1:04:58 AM5/26/20
to Django users
I want to create a custom function which will get modified into a sql querry and will work like Count ...i.e. for every row of the queryset

Kushal Neupane

unread,
May 26, 2020, 3:03:28 AM5/26/20
to django...@googlegroups.com
I think this in template will help you.
<div class="card-header">Total Table Numbers</div>
<h4 class="card-text text-center">{{tableNumber_total}}</h4>

On Tue, May 26, 2020 at 10:50 AM Saurabh Adhikary <adhikar...@gmail.com> wrote:
I want to create a custom function which will get modified into a sql querry and will work like Count ...i.e. for every row of the queryset

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a301d3e-d690-4b49-b6da-02d00c97758e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages