django objects.filter with or code example
Example 1: filter django or
#There is Q objects that allow to complex lookups. Example:
from django.db.models import Q
Item.objects.filter(Q(creator=owner) | Q(moderated=False))
Example 2: objects.filter django
>>> Entry.objects.filter(blog_id=4)