just printed "form.is_bound" in my view: the result is "True", although I didn´t invoke the Form with any data.
btw: I´m using the current SVN-version and did an update last week (before the update it worked). any help with this? thanks, patrick On 7 Sep., 16:53, patrickk <[EMAIL PROTECTED]> wrote: > I´m creating a dynamic newform and when going to the page, I´m getting > an error-message "This Field is required", although required ist set > to False when building the Form. > > Here´s part of the code: > > field_list = [] > date = forms.ChoiceField(label='Wann', required=False, > choices=date_choices_list, widget=forms.Select(attrs={'class': > 'vSelectField'})) > field_list.append(('Datum', date)) > ... > form = CinemaFormDynamic(field_list=field_list) > > class CinemaFormDynamic(forms.Form): > def __init__(self, data=None, auto_id=False, field_list=[]): > forms.Form.__init__(self, data, auto_id) > for field in field_list: > self.fields[field[0]] = field[1] > > thanks, > patrick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---