hi all:
I have the following code:
.
formamig = forms.ModelChoiceField(label = "Tipo de visa",
queryset=Formamig.objects.all())
empresa = forms.CharField(max_length=60, required=False)
def clean(self):
cleaned_data = self.cleaned_data
tipo_de_visa = cleaned_
Hi,
The following code does not work:
tipo_de_visa = cleaned_data.get("formamig")
.
if tipo_de_visa and tipo_de_visa == 'NEGOCIO':
thanks.
On 15 sep, 16:03, Daniel Roseman wrote:
> On Sep 15, 9:48 pm, alivad wrote:
>
>
>
> > h
Hi DR
The following code does not work:
if tipo_de_visa and tipo_de_visa == 'NEGOCIO':
Thanks
On 15 sep, 16:03, Daniel Roseman wrote:
> On Sep 15, 9:48 pm, alivad wrote:
>
>
>
> > hi all:
>
> > I have the following code:
>
> > .
&
15 sept. 2009, at 23:13, alivad wrote:> Hi DR
>
> > The following code does not work:
>
> > if tipo_de_visa and tipo_de_visa == 'NEGOCIO':
>
> > Thanks
>
> You still haven't explained how it doesn't work: what did you expect
> to happen,
o_de_visa"]
del cleaned_data["empresa"]
return cleaned_data
but not working on my form validation, I think the validation does not
work because the field is formamig and example ModelChoiceField fields
are Charfield
Can you help?
On 15 sep, 16:03, Daniel Roseman
Hi:
in the example this link
http://docs.djangoproject.com/en/dev/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other
additional validation is performed cc_myself and subject fields,
could give me an example to validate a field of type ModelChoiceField
Thanks
--~--~
how to make a Timeline in Django, something like:
http://newstimeline.googlelabs.com/
Thanks you.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this gro
7 matches
Mail list logo