Make QuerySet distinct. Only makes sense in combination with a ``.values()`` or ``.values_list()`` as it precedes all the fetched fields with a distinct.
(self)
| 576 | return queryset |
| 577 | |
| 578 | def distinct(self) -> QuerySet[MODEL]: |
| 579 | """ |
| 580 | Make QuerySet distinct. |
| 581 | |
| 582 | Only makes sense in combination with a ``.values()`` or ``.values_list()`` as it |
| 583 | precedes all the fetched fields with a distinct. |
| 584 | """ |
| 585 | queryset = self._clone() |
| 586 | queryset._distinct = True |
| 587 | return queryset |
| 588 | |
| 589 | def select_for_update( |
| 590 | self, |