Opened 13 years ago

Closed 12 years ago

#1986 closed defect (worksforme)

floatfield admin list not working properly

Reported by: rob@… Owned by: Adrian Holovaty
Component: contrib.admin Version: master
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


I found a bug in "django\contrib\admin\templatetags\"

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)

admin_list_bug.patch (652 bytes) - added by rob@… 13 years ago.
the patch :)

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by rob@…

Attachment: admin_list_bug.patch added

the patch :)

comment:1 Changed 13 years ago by anonymous

Summary: floatfield admin list not working properlufloatfield admin list not working properly

comment:2 Changed 12 years ago by Gary Wilson <gary.wilson@…>

Resolution: worksforme
Status: newclosed

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.
Back to Top