diff options
author | hardythe1 | 2015-01-30 13:55:03 +0530 |
---|---|---|
committer | hardythe1 | 2015-01-30 13:55:03 +0530 |
commit | 5a17e537efb0578a83caca666d7c39fcacf2802e (patch) | |
tree | ecfa0bba208bc3b14ce220e4868cfddf191a963c /tbc | |
parent | 9dfaa49079cfd697adda7b89915f29f797c7f857 (diff) | |
download | Python-TBC-Interface-5a17e537efb0578a83caca666d7c39fcacf2802e.tar.gz Python-TBC-Interface-5a17e537efb0578a83caca666d7c39fcacf2802e.tar.bz2 Python-TBC-Interface-5a17e537efb0578a83caca666d7c39fcacf2802e.zip |
handle not found exception
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index 3b75303..4ad7f8e 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -198,7 +198,7 @@ def UserRegister(request): if form.is_valid(): email = request.POST['email'] try: - User.objects.get(email=email) + check_email = User.objects.get(email=email) context['form'] = form context['DuplicateEmail'] = True return render_to_response('tbc/register.html', context) |