#34000: Fix numberformat.py "string index out of range" when null
-------------------------------------------+------------------------
Reporter: Jimmy Angelakos | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------------+------------------------
When:
{{{
if str_number[0] == "-"
}}}
encounters a number field that's null when formatting for the admin
list_display this causes an
{{{
IndexError: string index out of range
}}}
I can attach the proposed fix here, or open a pull request on GitHub if
you like?
--
Ticket URL: <https://code.djangoproject.com/ticket/34000>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070183246d4b6e-5ba248aa-8103-405b-9e8f-c9012acf13cb-000000%40eu-central-1.amazonses.com.