CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html;charset=utf-8
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
set-cookie: trac_form_token=59fb191a2f9bd7ce0c5b783b; HttpOnly; Path=/; Secure
set-cookie: trac_session=a0491c9f50d54f3b2d4e458d; expires=Tue, 21 Oct 2025 05:44:55 GMT; HttpOnly; Path=/; Secure
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
accept-ranges: bytes
via: 1.1 varnish, 1.1 varnish
date: Wed, 23 Jul 2025 05:44:55 GMT
x-served-by: cache-fra-eddf8230106-FRA, cache-bom-vanm7210041-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753249495.414827,VS0,VE328
vary: Accept-Encoding
BasicComparisonFilters – Django
Back to Top
Django
The web framework for perfectionists with deadlines.
Issues
from django.template import Library def gt(value, arg): "Returns a boolean of whether the value is greater than the argument" return value > int(arg) def lt(value, arg): "Returns a boolean of whether the value is less than the argument" return value < int(arg) def gte(value, arg): "Returns a boolean of whether the value is greater than or equal to the argument" return value >= int(arg) def lte(value, arg): "Returns a boolean of whether the value is less than or equal to the argument" return value <= int(arg) def length_gt(value, arg): "Returns a boolean of whether the value's length is greater than the argument" return len(value) > int(arg) def length_lt(value, arg): "Returns a boolean of whether the value's length is less than the argument" return len(value) < int(arg) def length_gte(value, arg): "Returns a boolean of whether the value's length is greater than or equal to the argument" return len(value) >= int(arg) def length_lte(value, arg): "Returns a boolean of whether the value's length is less than or equal to the argument" return len(value) <= int(arg) register = Library() register.filter('gt', gt) register.filter('lt', lt) register.filter('gte', gte) register.filter('lte', lte) register.filter('length_gt', length_gt) register.filter('length_lt', length_lt) register.filter('length_gte', length_gte) register.filter('length_lte', length_lte)
Last modified
19 years ago
Last modified on Oct 23, 2006, 2:16:50 AM
Note:
See TracWiki
for help on using the wiki.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.