Lets say I have a model:

class Foo(models.Model):
          name = models.charField(....)
         age = models.IntegerField (....)

Then I create a form like this:

class FooForm (ModelForm):
        salutation =
forms.ChoiceField(choices=common.SALUTATION_CHOICES,
label="Salutation")

   class Meta:
         model: Foo

I see that the form's cleaned_data does not contain an a key for
salutation. Why is this.. Is this because it is a model form? How do i
get the data entered for Saluation?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to