X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6711796e2e218419485fd3ebd4949cfeefa01b16..806f7ea48c066ee89bcbc0035ae3b7d2bff7186b:/apps/explorer/forms.py?ds=inline diff --git a/apps/explorer/forms.py b/apps/explorer/forms.py index d79bc74c..910db542 100644 --- a/apps/explorer/forms.py +++ b/apps/explorer/forms.py @@ -19,7 +19,7 @@ class PersonListField(forms.Field): 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: @@ -67,9 +67,9 @@ class DublinCoreForm(forms.Form): 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)