Handle additional call modes and call cases for wgcharter.views.submit.

- Legacy-Id: 4555
This commit is contained in:
Henrik Levkowetz 2012-06-29 00:37:26 +00:00
parent fa35a8f8fe
commit 22c3ae22b9

View file

@ -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