Skip to content

Commit 802ee29

Browse files
committed
Quick fix for crash when going to /wg/imapmove/charter/. I'm not happy about the 'charter-ietf-' constant which now appears several places in the code; we need settings which defines the correct name pattern for different document types (or a table or table column, maybe). But this hopefully will make it possible to continue processing proposed WGs ...
- Legacy-Id: 4459
1 parent fde5387 commit 802ee29

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/templates/wginfo/wg_charterREDESIGN.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
{% else %}
7373
none
7474
{% if user|has_role:"Area Director,Secretariat" %}
75-
- <a href="{% url wgcharter.views_submit.submit name=wg.acronym %}">Submit Charter</a>
75+
- <a href="{% url wgcharter.views.submit acronym=wg.acronym %}">Submit Charter</a>
7676
{% endif %}
7777
{% endif %}
7878
</td>

ietf/wgcharter/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ def save(self, wg, rev):
287287
destination.write(self.cleaned_data['content'])
288288

289289
@role_required('Area Director','Secretariat')
290-
def submit(request, name, option=None):
290+
def submit(request, name=None, acronym=None, option=None):
291+
if acronym and not name:
292+
name = "charter-ietf-" + acronym
291293
charter = get_object_or_404(Document, type="charter", name=name)
292294
wg = charter.group
293295

0 commit comments

Comments
 (0)