Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

if queryset is empty django

# check if queryset is empty (django)
if not myQueryset:
    # Do this...
else:
    # Do that...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #queryset #empty #django
ADD COMMENT
Topic
Name
4+1 =