DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
django check if queryset is empty
if some_queryset.exists(): print("There is at least one object in some_queryset")
PREVIOUS
NEXT
Tagged:
#django
#check
#queryset
#empty
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit