if a in queryset: python django code example
Example: django queryset exists
if some_queryset.exists():
print("There is at least one object in some_queryset")
if some_queryset.exists():
print("There is at least one object in some_queryset")