From e3554698f6f29f22c827dca87ef2c797f81f887a Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Tue, 26 Mar 2019 10:24:34 +0100 Subject: [PATCH] Fix string constants --- scipost/forms.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scipost/forms.py b/scipost/forms.py index ee808f6de..0c49dce9a 100644 --- a/scipost/forms.py +++ b/scipost/forms.py @@ -334,17 +334,17 @@ class SciPostAuthenticationForm(AuthenticationForm): def confirm_login_allowed(self, user): if not user.is_active: raise forms.ValidationError( - _('Your account is not yet activated. ' - 'Please first activate your account by clicking on the ' - 'activation link we emailed you.'), + ('Your account is not yet activated. ' + 'Please first activate your account by clicking on the ' + 'activation link we emailed you.'), code='inactive', - ) + ) if not user.groups.exists(): raise forms.ValidationError( - _('Your account has not yet been vetted.\n' - 'Our admins will verify your credentials very soon, ' - 'and if vetted (your will receive an information email) ' - 'you will then be able to login.'), + ('Your account has not yet been vetted.\n' + 'Our admins will verify your credentials very soon, ' + 'and if vetted (your will receive an information email) ' + 'you will then be able to login.'), code='unvetted', ) -- GitLab