Answers for "django get last record in queryset"

1

how to get last values or data in django orm

my_queryset.reverse()[:5]
Posted by: Guest on September-14-2021
0

fetch last record from django model

MyModel.objects.last()
Posted by: Guest on August-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language