There is no presentation layer, actually. I mean, theoretically the forms could be rendered, but I really just want them to validate input data AND.. and this is the kicker, AND I need them to provide default values, which Forms as I understand, don't do, except for presentation. As in, when I pull form_instance.count, it should be 1, even if nothing was specified in the GET dictionary. It's not my standard...
-- Jeff On Wed, Jan 18, 2012 at 11:06 AM, Tom Evans <tevans...@googlemail.com>wrote: > That would probably do it. You may also need to give it a different > widget, I'd guess that a <select> is not how you would present this to > the user - although maybe you are just using the form for processing > and not to generate a presentation layer. > > Cheers > > Tom > > On Wed, Jan 18, 2012 at 4:01 PM, Jeff Heard <jefferson.r.he...@gmail.com> > wrote: > > Sadly these strings are arbitrary, yes... I suppose I could subclass > > MultipleChoiceField and kill the validator. > > > > On Wed, Jan 18, 2012 at 10:54 AM, Tom Evans <tevans...@googlemail.com> > > wrote: > >> > >> On Wed, Jan 18, 2012 at 3:51 PM, Andre Terra <andrete...@gmail.com> > wrote: > >> > https://docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield > >> > > >> > > https://docs.djangoproject.com/en/dev/ref/forms/fields/#django.forms.MultipleChoiceField > >> > > >> > > >> > >> That is how I almost replied, but a MultipleChoiceField constrains the > >> submitted values to be within a predefined list of acceptable values. > >> You couldn't use a MultipleChoiceField to collect an arbitrary number > >> of arbitrary strings, it would fail validation. > >> > >> Cheers > >> > >> Tom > >> > >> -- > >> 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 > >> django-users+unsubscr...@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/django-users?hl=en. > >> > > > > -- > > 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 > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.