.objects.filter django code example
Example 1: django reverse queryset
queryset = reversed(Collection.objects.filter(pk__in = li))
Example 2: objects.filter django
>>> Entry.objects.filter(blog_id=4)
Example 3: create django object
Author.objects.create(name="Joe")
Example 4: django filter values with OR operator
Blog.objects.filter(pk__in=[1, 4, 7])