Skip to content
Justice Tech School

Field Lookups

Double underscores add conditions.

Example
Post.objects.filter(title__startswith="A")
Post.objects.filter(views__gte=100)
Post.objects.filter(created__year=2026)
Post.objects.filter(id__in=[1, 2, 3])

Exercise

Greater or equal.

views__=100

Quiz Test

Which means contains ignoring case?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.