Re: iterate over query set

2021-07-26 Thread DJANGO DEVELOPER
because you have provided the get_department with index 0. so it will only give you the info about first department. On Tue, Jul 27, 2021 at 3:17 AM sum abiut wrote: > I am trying to get the values of the userid by iterating through the > queryset. However not all the values are displayed. I am

iterate over query set

2021-07-26 Thread sum abiut
I am trying to get the values of the userid by iterating through the queryset. However not all the values are displayed. I am not sure why I am not getting all the values when I iterate through it. users - Users.objects.filter(depid=get_department[0].depid) print(users) #when i test it here it pri