Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add condition if null value in django orm

Name.objects.exclude(alias__isnull=True).exclude(alias__exact='')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #condition #null #django #orm
ADD COMMENT
Topic
Name
7+9 =