I tried to filter on a property of a model and this did not seem to
work?
Any pointers on how to get this working? The idea is that I would
like to count the amount of a certain object linked (foreignkey) to
the model and filter on the count with all values and values > 0...
Thanks!
You just loop through and do whatever. Don't use filter. or django-filters.
The properties don't exist in SQL so you can sooner filter your
neighbors by how many cats they have using Django's ORM than get what
you are trying to do working.You just loop through and do whatever. Don't use filter. or django-filters.