Wersja XML.
[redakcja.git] / apps / explorer / forms.py
index d79bc74..910db54 100644 (file)
@@ -19,7 +19,7 @@ class PersonListField(forms.Field):
         super(PersonListField, self).__init__(*args, **kwargs)
     
     def _get_initial(self):
         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:
 
     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)
     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)
     source_name = forms.CharField(widget=forms.Textarea)
     source_url = forms.URLField(verify_exists=False)
     url = forms.URLField(verify_exists=False)