mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #35443 -- Changed ordinal to return negative numbers unchanged.
Previously, `-1` was converted to `"-1th"`. This has been updated to return negative numbers "as is", so that for example `-1` is converted to `"-1"`. This is now explicit in the docs. Co-authored-by: Martin Jonson <artin.onson@gmail.com>
This commit is contained in:
parent
b049bec7cf
commit
d3a7ed5bcc
3 changed files with 10 additions and 1 deletions
|
@ -143,3 +143,4 @@ Examples:
|
|||
* ``3`` becomes ``3rd``.
|
||||
|
||||
You can pass in either an integer or a string representation of an integer.
|
||||
Negative integers are returned unchanged.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue