From 22c3ae22b93b22321a98a0738941f7031e035bcf Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 29 Jun 2012 00:37:26 +0000 Subject: [PATCH] Handle additional call modes and call cases for wgcharter.views.submit. - Legacy-Id: 4555 --- ietf/wgcharter/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ietf/wgcharter/views.py b/ietf/wgcharter/views.py index 2ec85cd40..ed6adee4b 100644 --- a/ietf/wgcharter/views.py +++ b/ietf/wgcharter/views.py @@ -288,7 +288,10 @@ class UploadForm(forms.Form): @role_required('Area Director','Secretariat') def submit(request, name=None, acronym=None, option=None): - if acronym and not name: + if name: + if not name.startswith('charter-'): + name = "charter-ietf-" + name + elif acronym: name = "charter-ietf-" + acronym charter = get_object_or_404(Document, type="charter", name=name) wg = charter.group