Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

filter outside queryset in list django

users = UserClasses.objects.filter(class_id=data['class_id'])
user_details = User.objects.filter(id__in=users.values_list('id', flat=True))
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #filter #queryset #list #django
ADD COMMENT
Topic
Name
8+6 =