diff --git a/django_orm/README.md b/django_orm/README.md index 8906c8a6d9a..6183c71c879 100644 --- a/django_orm/README.md +++ b/django_orm/README.md @@ -111,12 +111,12 @@ Now try to get list of published posts again (press the up arrow button 3 times QuerySets also allow you to order the list of objects. Let's try to order them by `created_date` field: - >>> Post.objects.all().order_by('created_date') + >>> Post.objects.order_by('created_date') [, , , ] We can also reverse the ordering by adding `-` at the beggining: - >>> Post.objects.all().order_by('-created_date') + >>> Post.objects.order_by('-created_date') [, , , ] Cool! You're now ready for the next part! To close shell, type this: