I have the code User.objects.values_list('last_login',flat= True) Which gives me a list of all of the last logins for all of the users but I’m unsure how you slim that done to a specific user. I tried code along the lines of User.objects.get(username='user1').values_list('last_login',flat= True) But that didn’t work. I think I need something between the first set of paren’s and values_list but I not sure what I would put there in order for them to link up?
I have the code User.objects.values_list(‘last_login’,flat= True) Which gives me a list of all of
Share
Try this: