Blogger Template by Blogcrowds.

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:

Post a Comment



Newer Post Older Post Home