-
-
Notifications
You must be signed in to change notification settings - Fork 352
Description
Hello, i have the following model:
So, when i try to filter on the form and select two options for the field 'temas' that have both shared options on the field 'evaluaciones' the options appears duplicated (And it's fine because Relational DB design).
on a normal case the solution here must be use a distinct on the queryset, but i can't see on the code neither the documentation an option for distinct on ChainedManyToMany, for debugging purposes i had tested this on the views file:
Notice the line 65 that has a .distinct() in the end, with this solution the select works fine (This is not a final solution, just for debugging purposes) so i need to know if this is a real issue, if so, how can be added the distinct solution to the code? i'm new to the repo so i need feedback, if this is already solved please notice me how to use it.
Thanks.