Opened 19 years ago

Closed 18 years ago

#1986 closed defect (worksforme)

floatfield admin list not working properly

Reported by: rob@… 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)

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

Download all attachments as: .zip

Change History (3)

by rob@…, 19 years ago

Attachment: admin_list_bug.patch added

the patch :)

comment:1 by anonymous, 18 years ago

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

comment:2 by Gary Wilson <gary.wilson@…>, 18 years ago

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