[Django]-Django values_list giving id instead of value

3👍

Field lookups to use SQL WHERE clause to get foreign table Parent
‘s feild.

Organisation.objects.values_list('first_parent__parent_name', flat=True).distinct()
👤varad

Leave a comment