I have a model Employees
and I would like to have a QuerySet of all rows, but with some specific fields from each row, and not all fields.
I know how to quer
Oskar Persson's answer is the best way to handle it because makes it easier to pass the data to the context and treat it normally from the template as we get the object instances (easily iterable to get props) instead of a plain value list.
After that you can just easily get the wanted prop:
for employee in employees:
print(employee.eng_name)
Or in the template:
{% for employee in employees %}
{{ employee.eng_name }}
{% endfor %}