filter data in django forms 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: django filter exsist
if table.objects.filter(prop='value').count() > 0: