Django Model – Get distinct value list February 8, 2023 by Tarik Perhaps you might want to go with this: Entity.objects.order_by().values_list('foreign_key', flat=True).distinct()