Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Django less than and greater than

# Less than or equal:
User.objects.filter(userprofile__level__lte=0)

#Greater than or equal:
User.objects.filter(userprofile__level__gte=0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Django #greater
ADD COMMENT
Topic
Name
7+7 =