adonis simo
Jan 17, 2023

--

Interesting, for the second answer you can also use

```

Books.objects.all().only('title', 'published_date')

```

So instead of having a native python list like you would have with `values_list()` you will get a Queryset of django model, but only those 2 fields will be filled

--

--

adonis simo

Full Stack software developer, mainly working with Django and React, get in touch with me here : www.adonissimo.com or by email simoadonis AT gmail.com