<filename>Models/querysets/Methods that do not return QuerySets/last()/tests.py<gh_stars>0
#!/usr/bin/env python
from .models import MyModel

"""
https://docs.djangoproject.com/en/dev/ref/models/querysets/#last
"""

obj = MyModel.objects.last()
if obj:
    print(obj)

<filename>Models/querysets/Methods that do not return QuerySets/last()/tests.py<gh_stars>0
#!/usr/bin/env python
from .models import MyModel

"""
https://docs.djangoproject.com/en/dev/ref/models/querysets/#last
"""

obj = MyModel.objects.last()
if obj:
    print(obj)

#!/usr/bin/env python https://docs.djangoproject.com/en/dev/ref/models/querysets/#last