--
Ticket URL: <https://code.djangoproject.com/ticket/32830>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => sushantg2001
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32830#comment:1>
* status: assigned => closed
* resolution: => invalid
Comment:
The `last` template filter is not intended to work with a queryset but
with a list, see
[https://docs.djangoproject.com/en/3.2/ref/templates/builtins/#last docs].
You can use `{{ queryset.last }}`, which will call
[https://docs.djangoproject.com/en/3.2/ref/models/querysets/#last
QuerySet.last()].
--
Ticket URL: <https://code.djangoproject.com/ticket/32830#comment:2>