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
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
2 matches
Mail list logo