On Fri, 23 Dec 2011 09:42:37 +0100, Mengu wrote:
you need to set "initial" attribute of TypedChoiceField.
Thanks, I knew about the initial only on form instance and not on field :)
On Dec 23, 10:34 am, Martin Tiršel wrote:
Hello,
I have:
class
you need to set "initial" attribute of TypedChoiceField.
On Dec 23, 10:34 am, Martin Tiršel wrote:
> Hello,
>
> I have:
>
> class SomeForm(forms.Form):
> ...
>
> def __init__(self, *args, **kwargs):
> ...
> super(SomeForm, self).__init__(*args,
Hello,
I have:
class SomeForm(forms.Form):
...
def __init__(self, *args, **kwargs):
...
super(SomeForm, self).__init__(*args, **kwargs)
...
self.fields['starting_location'] = forms.TypedChoiceField(
label=_('Starting location'),
3 matches
Mail list logo