#12550 closed (fixed)
DecimalField with null=True causes exception in admin list
Reported by: | Owned by: | Brian Rosner | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.2-alpha |
Severity: | Keywords: | ||
Cc: | jacques.beaurain@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Tracked it down to a regression introduce by changes for ticket #7980.
This is the exception:
TypeError: float() argument must be a string or a number
Note that this only happens if a record in the results contains a null in this field.
Patch attached.
Attachments (3)
Change History (10)
by , 15 years ago
Attachment: | django1.2nulldecimal.patch added |
---|
comment:1 by , 15 years ago
Needs tests: | set |
---|
comment:2 by , 15 years ago
Cc: | added |
---|
by , 15 years ago
Attachment: | django_nullvalue_adminlist_display.patch added |
---|
Patch for other fields too and includes regression test.
comment:3 by , 15 years ago
Needs tests: | unset |
---|
comment:4 by , 15 years ago
Actually this looks more like a regression after the admin-readonly stuff in [11965].
by , 15 years ago
Attachment: | django_nullvalue_adminlist_display.2.patch added |
---|
Better patch for flatchoices and one more type
comment:5 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Patch fixes exception