Commit f2923706 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(UIUX): add get_help_text function to publications form, required 'http://'...

fix(UIUX): add get_help_text function to publications form, required 'http://' prefix for URLfields should be mentioned there. Fixes #67
parent 7ebe7872
......@@ -13,6 +13,8 @@ from crispy_forms.layout import (
)
from crispy_forms.bootstrap import FormActions, TabHolder, Tab
from discuss_data.core.views import get_help_texts
from .models import Publication
......@@ -45,7 +47,7 @@ class PublicationForm(ModelForm):
"pages",
"description",
]
# exclude = ['authors', 'editors' ]#'name_of_institution', 'place_of_institution', 'country_of_institution', 'website_of_institution']
help_texts = get_help_texts("edit-publication")
helper = FormHelper()
helper.form_tag = False
......
......@@ -645,7 +645,6 @@ def user_edit_publication(request, pub_uuid=None):
publication = Publication.objects.get(uuid=pub_uuid)
form = PublicationForm(instance=publication)
else:
publication = Publication()
form = PublicationForm()
updated = False
form_err = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment