#29680: Paginate start with last Page
-------------------------------------+-------------------------------------
Reporter: Dario Navin | Owner: Dario
Type: | Navin
Cleanup/optimization | Status: closed
Component: Generic views | Version: 2.1
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: assigned => closed
* resolution: => wontfix
Comment:
Given that `?page=last` already exists I'm don't think this merits the
extra method.
If you **really** don't want the query parameter you can always just
override `paginate_queryset()`.
Something like this would do no?:
{{{
page_kwarg = self.page_kwarg
if self.request.GET.get(page_kwarg) is None:
self.kwargs[page_kwarg] = 'last'
return super().paginate_queryset(self, queryset, page_size)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29680#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.2155072cc831480434f4ccbd42695fe7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.