Closed ruitcatarino closed 3 weeks ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
tortoise/queryset.py | 10 | 11 | 90.91% | ||
<!-- | Total: | 13 | 14 | 92.86% | --> |
Totals | |
---|---|
Change from base Build 11641255981: | 0.005% |
Covered Lines: | 6025 |
Relevant Lines: | 6650 |
Description
This implements the
last
(https://docs.djangoproject.com/en/5.1/ref/models/querysets/#last methods similar to Django.Motivation and Context
Like I explained in the issue https://github.com/tortoise/tortoise-orm/issues/1753 I miss this method as someone coming from Django.
How Has This Been Tested?
Well I implemented tests to validate the usage of this method and ran them with
make test
. I also did some local testing.Checklist:
The existing tests are not passing in the develop branch for me. But the new created tests are passing. I'll post the output of my tests here