I have a situation where i need to query the UserProfile model but need to get for every user record a field from the auth.User model:
groups_list = User.objects.filter(status__in=group_list).values_list('email', flat=True)
Where “status” in the filter is from the UserProfile model.
Can any one help me with this?
Thank you,
Erez
I think this is what you need.
Thus it’ll be something like: