[Solved]-Annotate a django query via a reverse relationship

8👍

The code you’ve posted should work – in any case, it should not return an empty queryset as annotate doesn’t affect the filtering of the main query.

Silly question, but are you sure there are Property elements in the database?

Leave a comment