Ok…this post is now old BUT what you could do is get all the ids
of the objects in your list, then perform a model.objects.filter(pk__in=list_of_ids)
More Related Contents:
- How to sort a list/tuple of lists/tuples by the element at a given index?
- Pythonic way to check if a list is sorted or not
- Django filter queryset __in for *every* item in list
- How to sort a list of tuples according to another list
- How can I filter a date of a DateTimeField in Django?
- Getting the SQL from a Django QuerySet [duplicate]
- How to sort and remove duplicates from Python list? [duplicate]
- case-insensitive list sorting, without lowercasing the result?
- Accessing the list while being sorted
- List sorting with multiple attributes and mixed order
- Sorting a dictionary with lists as values, according to an element from the list
- Django Admin: Ordering of ForeignKey and ManyToManyField relations referencing User
- many-to-many in list display django
- Efficient method to calculate the rank vector of a list in Python
- How to combine multiple querysets in Django?
- aggregate() vs annotate() in Django
- Count() vs len() on a Django QuerySet
- How do I sort a list of objects based on an attribute of the objects?
- Simple Subquery with OuterRef
- How to sort a list of strings in reverse order without using reverse=True parameter?
- Python Sort One List According to Another List
- django order_by query set, ascending and descending
- django filter on the basis of text length
- Python: How to sort a list of dictionaries by several values?
- Django filter JSONField list of dicts
- Split a list of tuples into sub-lists of the same tuple field [duplicate]
- Nested lambda statements when sorting lists
- How to find the max number(s) in a list with tied numbers
- How to annotate Count with a condition in a Django queryset
- Can a dictionary be passed to django models on create?