For a light version of the query, you can try a qs.first() as Django will 
limit the SQL request to the first element.

On Saturday, July 4, 2020 at 10:11:41 PM UTC+2, Eugene Kulak wrote:
>
> How to get names of columns from QuerySet without executing it?
> If it is not possible what would be the most easier way to execute a 
> lighter version of the query. 
> The query itself is unknown, it could be anything.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bc90a722-9ef7-4301-be5a-98915b92fe88o%40googlegroups.com.

Reply via email to