X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/51ee8fd625da8fda8b0fcc62443fb5a110fa8160..eb769f1b951951ebd6cb55060f2f61a8c25d5aac:/redakcja/forms.py
diff --git a/redakcja/forms.py b/redakcja/forms.py
index 0a771c75..12fb3a88 100644
--- a/redakcja/forms.py
+++ b/redakcja/forms.py
@@ -22,8 +22,10 @@ class RegistrationForm(forms.Form):
if User.objects.filter(username=email).exists():
msg = _(
'User with this email address already exists. '
- 'Log in or reset your password.') % (
- reverse('login'), reverse('password_reset'))
+ 'Log in or reset your password.') % {
+ 'login_url': reverse('login'),
+ 'reset_url': reverse('password_reset'),
+ }
raise forms.ValidationError(mark_safe(msg))
if len(email) > max_length:
raise forms.ValidationError(_('Username too long. Max length: %s') % max_length)