FloatField, localize and Django settings

165 views
Skip to first unread message

Michael Anckaert

unread,
Jan 22, 2013, 3:30:09 PM1/22/13
to django-d...@googlegroups.com
Hello everyone

I came across an issue where my CBV and an automatic ModelForm gave me some headaches with localization. 

The project is localized so a float is 3,2 instead of 3.2 (comma instead of dot) but the CBV UpdateView didn't handle the localization of the float. 
After tracking through the sources I noticed that the attribute localize of FloatField has to be set manually. 

Wouldn't it be sensible to localize the FloatField according to the project settings instead of having to manually set it in a custom form? 

Kind regards
Michael Anckaert 

Wim Feijen

unread,
Jan 22, 2013, 5:29:05 PM1/22/13
to django-d...@googlegroups.com
Hi Michael, sounds very reasonable to me. Could you please file a bug ticket for that at https://code.djangoproject.com/newticket ?

Michael Anckaert

unread,
Jan 23, 2013, 3:27:10 AM1/23/13
to django-d...@googlegroups.com
Thanks for your feedback. For reference, ticket is #19656 (https://code.djangoproject.com/ticket/19656#ticket)


2013/1/22 Wim Feijen <w...@go2people.nl>

--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/BFrsjaJD0hMJ.
To post to this group, send email to django-d...@googlegroups.com.
To unsubscribe from this group, send email to django-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.



--
Reply all
Reply to author
Forward
0 new messages