Opened 18 years ago

Closed 17 years ago

#4004 closed (duplicate)

Need a newforms.FloatField field

Reported by: tonnzor <tonn81@…> Owned by: anonymous
Component: Forms Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Newforms contains IntegerField for handling sharp numbers, but do not have FloatField for handling all other numbers.

If this bug is accepted I write a patch.

Attachments (2)

FloatField.diff (5.8 KB ) - added by tonnzor <tonn81@…> 18 years ago.
FloatField
FloatField.2.diff (5.9 KB ) - added by tonnzor <tonn81@…> 18 years ago.
FloatField (fixed error message)

Download all attachments as: .zip

Change History (7)

comment:1 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedAccepted

comment:2 by tonnzor <tonn81@…>, 18 years ago

Has patch: set
Owner: changed from Adrian Holovaty to anonymous
Status: newassigned

Patch seems a bit complicated, but it supports max_digits and decimal_places parameters (similar to django.db.models.FloatField)

Error messages might be improved.

The patch contains test suite too.

comment:3 by tonnzor <tonn81@…>, 18 years ago

I have a patch, but see no field to attach it to this ticket :(

by tonnzor <tonn81@…>, 18 years ago

Attachment: FloatField.diff added

FloatField

by tonnzor <tonn81@…>, 18 years ago

Attachment: FloatField.2.diff added

FloatField (fixed error message)

comment:4 by Malcolm Tredinnick, 17 years ago

See also #3238 for an alternative patch.

comment:5 by Malcolm Tredinnick, 17 years ago

Resolution: duplicate
Status: assignedclosed

Closign in favour of #2365.

Note: See TracTickets for help on using tickets.
Back to Top