#35443: Fix negative numbers for ordinals
-------------------------------------+-------------------------------------
Reporter: Siburg | Owner:
| S-Tornqvist, Crustum7
Type: Bug | Status: closed
Component: contrib.humanize | Version: dev
Severity: Normal | Resolution: fixed
Keywords: humanize ordinal | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"d3a7ed5bcc45000a6c3dd55d85a4caaa83299f83" d3a7ed5b]:
{{{#!CommitTicketReference repository=""
revision="d3a7ed5bcc45000a6c3dd55d85a4caaa83299f83"
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...@gmail.com>
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/35443#comment:6>