[Answer]-How to create a list of related fields from the queryset result in django?

1👍

c_list = a_list.values_list('c', flat=True)

would give a list of all the c values from the filtered A objects

👤hqtay

Leave a comment