Hi Aidas,
17 apr 2009 kl. 13.01 skrev Aidas Bendoraitis [aka Archatas]:
> Actually, what would help you here is custom model field + form field
> + widget.
>
> For example, the following combination based on Babel (http://
> babel.edgewall.org/) could be used:
This looks like a great solution
Hi Knut,
Actually, what would help you here is custom model field + form field
+ widget.
For example, the following combination based on Babel (http://
babel.edgewall.org/) could be used:
class DecimalWidget(forms.TextInput):
def render(self, name, value, attrs=None):
locale=get_cur
On Apr 17, 9:04 am, Knut Nesheim wrote:
> Hi all,
>
> I have a model with several FloatFields. Based on this, ModelForm
> creates some form.FloatFields.These fields require the user to type
> '3.2' instead of '3,2', which is the custom here(Sweden). We need to
> allow the comma somehow, for
Hi all,
I have a model with several FloatFields. Based on this, ModelForm
creates some form.FloatFields.These fields require the user to type
'3.2' instead of '3,2', which is the custom here(Sweden). We need to
allow the comma somehow, for obvious usability reasons.
My first thought was to
4 matches
Mail list logo