How to add a field name as variable in Django?
<p>Is it possible to pass in the field name instead of the hardcoded 'last_name'?</p>

<pre><code>for item in queryset:
    to_json.append(item.last_name)
</code></pre>
