bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/Django/Django References
Django•Django References

QuerySet Field Lookups Reference

Concept visual

QuerySet Field Lookups Reference

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Field Lookups Reference

A list of all field look up keywords:

Keyword

Description contains

Contains the phrase icontains

Formula

Same as contains, but case - insensitive date

Matches a date day

Formula

Matches a date (day of month, 1 - 31) (for dates)

endswith

Ends with iendswith

Formula

Same as endswidth, but case - insensitive exact

An exact match iexact

Formula

Same as exact, but case - insensitive in

Matches one of the values isnull

Matches NULL values gt

Greater than gte

Greater than, or equal to hour Matches an hour (for datetimes) lt

Less than lte

Less than, or equal to minute Matches a minute (for datetimes) month Matches a month (for dates) quarter

Formula

Matches a quarter of the year (1 - 4) (for dates)

range

Match between regex

Matches a regular expression iregex

Formula

Same as regex, but case - insensitive second

Matches a second (for datetimes) startswith

Starts with istartswith

Formula

Same as startswith, but case - insensitive time

Matches a time (for datetimes) week

Formula

Matches a week number (1 - 53) (for dates)

week_day

Formula

Matches a day of week (1 - 7) 1 is Sunday iso_week_day
Matches a ISO 8601 day of week (1 - 7) 1 is Monday year

Matches a year (for dates) iso_year Matches an ISO 8601 year (for dates)

Previous

Filter Reference