diff --git a/hc/accounts/forms.py b/hc/accounts/forms.py index 6371c250..c1aca20e 100644 --- a/hc/accounts/forms.py +++ b/hc/accounts/forms.py @@ -39,7 +39,7 @@ class ChangeEmailForm(forms.Form): def clean_email(self): v = self.cleaned_data["email"] if User.objects.filter(email=v).exists(): - raise forms.ValidationError("%s is not available" % v) + raise forms.ValidationError("%s is already registered" % v) return v diff --git a/hc/accounts/tests/test_change_email.py b/hc/accounts/tests/test_change_email.py index 523bb868..a5ad15eb 100644 --- a/hc/accounts/tests/test_change_email.py +++ b/hc/accounts/tests/test_change_email.py @@ -35,7 +35,7 @@ class ChangeEmailTestCase(BaseTestCase): payload = {"email": "bob@example.org"} r = self.client.post("/accounts/change_email/foo/", payload) - self.assertContains(r, "bob@example.org is not available") + self.assertContains(r, "bob@example.org is already registered") self.alice.refresh_from_db() self.assertEqual(self.alice.email, "alice@example.org")