N
Size: a a a
N
tn
```Product.objects.filter().values_list('vendor_id').distinct('vendor_id')```
С
N
А
Note
When you specify field names, you must provide an order_by() in the QuerySet, and the fields in order_by() must start with the fields in distinct(), in the same order.
For example, SELECT DISTINCT ON (a) gives you the first row for each value in column a. If you don’t specify an order, you’ll get some arbitrary row.
С
N
С
N
N
N
NL
С
С
N
С
NL
tn
NL
NL