On Thursday, 7 May 2020 12:47:21 UTC+1, Mohsen Pahlevanzadeh wrote:
>
> User.objects.all() only returns one field, I need to others fields 
> such as first_name or last_name. 
>
> How can I access others field? 
>

No it doesn't. It returns a queryset of objects, each of which has all the 
fields. When you print the entire queryset, it calls the `__repr__` method 
of each element.
-- 
DR.

-- 
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/ecc703ce-fc40-4533-a7ea-564ba7c870f7%40googlegroups.com.

Reply via email to