How to obtain a QuerySet of all rows, with specific fields for each one of them?
Employees.objects.values_list('eng_name', flat=True)
That creates a flat list of all eng_name
s. If you want more than one field per row, you can't do a flat list: this will create a list of tuples:
Employees.objects.values_list('eng_name', 'rank')
We can select required fields over values.
Employee.objects.all().values('eng_name','rank')