I posted this question on StackOverflow, too. I have defined a Model with a ManyToManyField, and I want the field to show the values joined by spaces, for example:
<input type="text" name="foo" value="val1 val2 val3"/> I have defined the form to use CharField to represent the multiple values: class MyForm(ModelForm): foo = CharField(label='Foo') class Meta: model = MyModel Instead of showing the values separated by spaces, the input field shows this instead: [u'val1', u'val2', u'val3'] How can I override this behavior? My understanding is that widgets are responsible for rendering the input. Is there an example of a custom widget that does something like this? Nate -- 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.