Skip to content

Commit 1714428

Browse files
committed
Tweak the error messages for acronym collisions in the create-wg form.
- Legacy-Id: 4395
1 parent 2bd427e commit 1714428

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/wginfo/edit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from django.template import RequestContext
88
from django import forms
99
from django.utils import simplejson
10+
from django.utils.html import mark_safe
1011

1112
from ietf.ietfauth.decorators import role_required, has_role
1213

@@ -49,9 +50,9 @@ def clean_acronym(self):
4950
raise forms.ValidationError("Acronym is invalid, may only contain letters, numbers and dashes.")
5051
if acronym != self.cur_acronym:
5152
if Group.objects.filter(acronym__iexact=acronym):
52-
raise forms.ValidationError("Acronym used in an existing group. Please pick another.")
53+
raise forms.ValidationError(mark_safe("The acronym belongs to an existing group. Please pick another,<br/> or go to <a href='%s'>recharter %s</a>" % (reverse("doc_view", None, kwargs={"name":"charter-ietf-%s"%acronym, }), acronym)))
5354
if GroupHistory.objects.filter(acronym__iexact=acronym):
54-
raise forms.ValidationError("Acronym used in a previous group. Please pick another.")
55+
raise forms.ValidationError("The acronym has been used by a previous group. Please pick another.")
5556
return acronym
5657

5758
def clean_urls(self):

0 commit comments

Comments
 (0)