Introduction:
This section will teach you to How to create not equal queryset filtering.
Method:
from django.db.models import Q
Models.objects.exclude(MyField='foo')
Models.objects.filter(~Q(MyField='foo'))
0 Comments:
Subscribe to:
Post Comments (Atom)