Fix some error messages
parent
8ac8fd4a62
commit
534445b30c
|
@ -44,7 +44,7 @@ class CreateTagValidator(ProjectTagValidator):
|
|||
def validate_tag(self, attrs, source):
|
||||
tag = attrs.get(source, None)
|
||||
if services.tag_exist_for_project_elements(self.project, tag):
|
||||
raise ValidationError(_("The tag exists."))
|
||||
raise ValidationError(_("This tag already exists."))
|
||||
|
||||
return attrs
|
||||
|
||||
|
@ -71,7 +71,7 @@ class EditTagTagValidator(ProjectTagValidator):
|
|||
def validate_to_tag(self, attrs, source):
|
||||
tag = attrs.get(source, None)
|
||||
if services.tag_exist_for_project_elements(self.project, tag):
|
||||
raise ValidationError(_("The tag exists yet"))
|
||||
raise ValidationError(_("This tag already exists."))
|
||||
|
||||
return attrs
|
||||
|
||||
|
|
Loading…
Reference in New Issue