From 111ff5e2e333353d5d46bd924ac95d52adeece38 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Wed, 23 Oct 2013 16:01:50 +0530 Subject: minor change --- scipy/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scipy/views.py') diff --git a/scipy/views.py b/scipy/views.py index d142e76..28b2f35 100644 --- a/scipy/views.py +++ b/scipy/views.py @@ -96,13 +96,13 @@ def upload_document(request): context['form'] = form context.update(csrf(request)) return render_to_response('upload-document.html', context) - if content_size > 5242880: + elif content_size > 5242880: large_file_msg = "File size exceeds 5MB" context['large_file'] = large_file_msg context['form'] = form context.update(csrf(request)) return render_to_response('upload-document.html', context) - if form.is_valid(): + elif form.is_valid(): data = form.save(commit=False) data.user = request.user data.verified = False -- cgit