Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django queryset exists

if some_queryset.exists():
    print("There is at least one object in some_queryset")
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #queryset #exists
ADD COMMENT
Topic
Name
7+3 =