Its not clear to me but if you don't specify distinct=True to django.db.models.Count() sometimes you get dupes -- ie the wrong count.
I feel like this is non-obvious and the CountOf() plugin should just always use distinct=True. When would you ever want dupes included in your count? 🤔
Its not clear to me but if you don't
specify distinct=True
todjango.db.models.Count()
sometimes you get dupes -- ie the wrong count.I feel like this is non-obvious and the
CountOf()
plugin should just always usedistinct=True
. When would you ever want dupes included in your count? 🤔