Skip to content
Advertisement

How do i make a counter that works for me on django Models

i have a question. i am trying to make some counter for my models. i have model- personeel and kwalification. i want to make a couter that counts how mutch personeel got the same kwalification like if 2 personeel got ehbo then it counts 2.

JavaScript

Advertisement

Answer

Kwalificaties.objects.filter(ehbo="wel").count()

maybe?

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement