Opened 19 years ago
Closed 18 years ago
#1986 closed defect (worksforme)
floatfield admin list not working properly
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I found a bug in "django\contrib\admin\templatetags\admin_list.py"
line 156 was:
result_repr = ('%%.%sf' % f.decimal_places) % field_val
which got me a type error, I fixed this to be:
result_repr = ('%%.%sf' % f.decimal_places) % float(field_val)
Attachments (1)
Change History (3)
by , 19 years ago
Attachment: | admin_list_bug.patch added |
---|
comment:1 by , 18 years ago
Summary: | floatfield admin list not working properlu → floatfield admin list not working properly |
---|
comment:2 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I cannot reproduce this error. If you are still getting this error, could you please give a bit more detail into the steps necessary to cause the error.
Note:
See TracTickets
for help on using tickets.
the patch :)