That's it, I want to get a list of all fields which are going to be 
selected by a queryset, is it possible?

e.g. 

qs = MyModel.objects.only('id', 'name')
select = qs.query.select #should be ['id','name']

PS. I notice there is a `qs.query.select`, but its empty. No idea if its 
the same as what I'm looking for, and how to use/fill it.
PS2. The method should return all fields, i.e. annotations too (if there 
are any). 




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56059101-4006-4ab4-91dd-3a696e07f101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to