sql - Django optimized queryset -


i trying :

emails = [c.email c in client.objects.all().order_by('lastname', 'firstname')] 

is there better way query select email clients order lastname, firstname ?

client.objects.order_by('lastname', 'firstname').values_list('email', flat=true) 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -