From: Ɓukasz Rekucki Date: Wed, 2 Sep 2009 13:13:20 +0000 (+0200) Subject: DC form changed to support multiple translators and technical_editors. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/db3e243b1ed74dce4437d9e72b975ce49b47763b DC form changed to support multiple translators and technical_editors. --- diff --git a/apps/explorer/forms.py b/apps/explorer/forms.py index 4946be69..910db542 100644 --- a/apps/explorer/forms.py +++ b/apps/explorer/forms.py @@ -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) diff --git a/apps/explorer/views.py b/apps/explorer/views.py index 1f53771e..19582e25 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -212,7 +212,6 @@ def dceditor_panel(request, path, repo): doc_text = repo.get_file(path, user_branch) document = parser.WLDocument.from_string(doc_text) form = forms.DublinCoreForm(info=document.book_info) - print "FORM: ", form return direct_to_template(request, 'explorer/panels/dceditor.html', extra_context={ 'fpath': path, 'form': form,