I try to get a list of distinct foreign keys and I wrote this:
my_ids = Entity.objects.values(\'foreign_key\').distinct()
But I get just a
Passing an argument to distinct doesn't work for MySQL-databases (AFAIK)
This one works and returns just one object:
Entity.objects.order_by('foreign_key').values('foreign_key').distinct()