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()
Source:stackexchange.com
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()