#2660: FloatField cant be edited in admin.
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: Admin interface | Version: SVN
Severity: normal | Keywords:
--------------------------------+-------------------------------------------
When adding the following FloatField to a model:
score =
models.FloatField(blank=True,null=True,max_digits=1,decimal_places=1)
And setting it to for example 5.5, in the admin panel it will show as
"5.". And if you try to save it it will complain with "Please enter a
valid decimal number with a whole part of at most 0 digits."
I've checked the value, and it does store correctly, so the bug is in the
admin panel.
--
Ticket URL: <http://code.djangoproject.com/ticket/2660>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---