From db3e243b1ed74dce4437d9e72b975ce49b47763b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Wed, 2 Sep 2009 15:13:20 +0200 Subject: [PATCH] DC form changed to support multiple translators and technical_editors. --- apps/explorer/forms.py | 6 +++--- apps/explorer/views.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) 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, -- 2.20.1