1👍
Should be something like this.
from django.db.models import Count
Packages.objects.annotate(subs=Count('subscripberpackage')).filter(subs__gt=10)
👤kanu
Source:stackexchange.com
1👍
Should be something like this.
from django.db.models import Count
Packages.objects.annotate(subs=Count('subscripberpackage')).filter(subs__gt=10)