super(PersonListField, self).__init__(*args, **kwargs)
def _get_initial(self):
- return u'\n'.join( ( unicode(person) for person in self._initial) )
+ return self._initial and (u'\n'.join( ( unicode(person) for person in self._initial)))
def _set_initial(self, value):
if value is None:
created_at = forms.DateField()
released_to_public_domain_at = forms.DateField()
editors = PersonListField(widget=forms.Textarea, required=False)
- translator = PersonField(required=False)
- technical_editor = PersonField(required=False)
- publisher = PersonField()
+ translators = PersonListField(widget=forms.Textarea, required=False)
+ technical_editors = PersonListField(widget=forms.Textarea, required=False)
+ publisher = forms.CharField()
source_name = forms.CharField(widget=forms.Textarea)
source_url = forms.URLField(verify_exists=False)
url = forms.URLField(verify_exists=False)