Python: Converting a queryset in a list of tuples
<pre><code>class User(models.Model):
    email = models.EmailField()
    name = models.CharField()
</code></pre>

<p>How to get email and name of User as a list of tuples? My current solution is this:</p>

<pre><code>result = []
for user in User.objects.all():
    result.append((user.email, user.name))
</code></pre>