Skip to content

Instantly share code, notes, and snippets.

@vyach-vasiliev
Created May 24, 2024 08:18
Show Gist options
  • Save vyach-vasiliev/466f42cb020c32c114713f8ec219cfa9 to your computer and use it in GitHub Desktop.
Save vyach-vasiliev/466f42cb020c32c114713f8ec219cfa9 to your computer and use it in GitHub Desktop.
Supported Lookups in Django Admin URL

Supported Lookups in Django Admin URL

exact: exact match

icontains: case-insensitive containment test

startswith, istartswith: starts with (case-insensitive)

endswith, iendswith: ends with (case-insensitive)

gte, lte: greater than or equal to, less than or equal to

gt, lt: greater than, less than

in: membership check (e.g. age__in=4,50)

range: range check (e.g. age__range=20,30)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment