Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #django
ADD COMMENT
Topic
Name
9+5 =