From 46b563e862cf6adf96e3ae8b7d69b59eec52210e Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Mon, 1 Aug 2016 13:25:25 +0300 Subject: [PATCH] =?UTF-8?q?fix=20bug=20for=201395:=20=D0=AD=D1=82=D0=B0?= =?UTF-8?q?=D0=BF=20=E2=84=964=20-=20=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D1=83=D0=BD=D0=B8=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20username?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- accounts/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accounts/forms.py b/accounts/forms.py index b033330a..4a140777 100644 --- a/accounts/forms.py +++ b/accounts/forms.py @@ -251,6 +251,8 @@ class RegistrationCompleteForm(forms.ModelForm): User.objects.get(id=int(url)) except (User.DoesNotExist,): return url + except (ValueError, ): + pass raise forms.ValidationError(_(u'Пользователь с таким url уже существует'))