1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27505 -- Allowed customizing Paginator's error messages.

This commit is contained in:
Marcelo Galigniana
2023-04-09 22:30:40 -03:00
committed by Mariusz Felisiak
parent 041b0a359a
commit dfc720c521
4 changed files with 90 additions and 5 deletions

View File

@@ -284,6 +284,12 @@ Models
:ref:`Choices classes <field-choices-enum-types>` directly instead of
requiring expansion with the ``choices`` attribute.
Pagination
~~~~~~~~~~
* The new :attr:`django.core.paginator.Paginator.error_messages` argument
allows customizing the error messages raised by :meth:`.Paginator.page`.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~