Tsallaka zuwa abun ciki
Justice Tech School

Reading Objects

all, get and filter read data.

Example
Post.objects.all()
Post.objects.get(pk=1)
Post.objects.filter(title__contains="Hi")
Post.objects.first()

Exercise

Filter.

Post.objects.(active=True)

Quiz Test

What does get do if none match?

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