Skip to content
Snippets Groups Projects
Commit 11da3152 authored by magicfelix's avatar magicfelix
Browse files

Fix translation usage

parent 8a2859b5
No related branches found
No related tags found
1 merge request!78Resolve "Rewrite registration wizard"
Pipeline #196005 passed
......@@ -103,7 +103,7 @@ class SendEventRegistrationMutation(graphene.Mutation):
},
)
except IntegrityError:
raise ValidationError(_("A person using the e-mail address %s already exists." % email))
raise ValidationError(_("A person using the e-mail address %s already exists.") % email)
# Store contact information in database
for field_name in ["date_of_birth", "sex", "address", "mobile_number"]:
......@@ -136,7 +136,7 @@ class SendEventRegistrationMutation(graphene.Mutation):
email=guardian_data["email"],
)
except IntegrityError:
raise ValidationError(_("A person using the e-mail address %s already exists." % guardian_data["email"]))
raise ValidationError(_("A person using the e-mail address %s already exists.") % guardian_data["email"])
person.guardians.add(guardian)
person.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment