Yes, 'required=False' throws an exception as apparently Lists are always required, even if it is an empty list.
On Mar 24, 3:05 pm, Matt McDonald <[email protected]> wrote: > Have you tried required=False? > > > > On Tue, Mar 23, 2010 at 7:15 PM, bliff <[email protected]> wrote: > > I have a StringListProperty field that never passes validation when > > submitted as part of a Django form, even though it has been assigned a > > default as documented in various other posts. Why is this? How can I > > have GAE/Django allow this field (text area) to be blank? > > > from appengine_django.models import BaseModel > > > class EmailCard(BaseModel): > > . . . > > bcc_email = db.StringListProperty(default=[], verbose_name='Bcc > > emails (one per line)') > > . . . > > > Additionally, I have tried the following to no avail: > > > default=None > > default='None' > > default=[] > > default=[u''] > > default=[''] > > default="[]" > > required=True,default=[] > > required=True, indexed=True, default=[] > > default=False > > > The form class: > > class EmailCardForm(djangoforms.ModelForm): > > class Meta: > > model = EmailCard > > exclude = ['created', 'card', 'status'] > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. > > -- > Matt McDonald -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
