﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13546	Easier handling of localize field options in ModelForm	Henrik Karlsen	Sasha Romijn	"When USE_L10N is set to True in settings, you still has to customize every single form Field to use it in forms. While this is fairly easy with the localize argument to django.forms.fields.Field, it is not easy if you use a ModelForm. In that case, you have to do something similar to this:
{{{
class CustomForm(ModelForm):
    class Meta:
        model = SomeModel
    def __init__(self, *args, **kwargs):
        super(CustomForm, self).__init__(*args, **kwargs)
        self.fields['some_field'].localize = True
}}}
Where some_field in SomeModel for example could be a DecimalField.

I therefore suggest that the USE_L10N setting is used as default value for form Field, as done in the attached patch."	New feature	closed	Forms	dev	Normal	fixed	sprint2013 dceu13	Greg Wogan-Browne mgventura Simon Charette	Ready for checkin	1	0	0	0	0	0
