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
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.