summaryrefslogtreecommitdiff
path: root/scipy/views.py
diff options
context:
space:
mode:
authorhardythe12013-10-23 16:01:50 +0530
committerhardythe12013-10-23 16:01:50 +0530
commit111ff5e2e333353d5d46bd924ac95d52adeece38 (patch)
tree6640a530aef51523ddddbd648fe4b3ebee1cc19d /scipy/views.py
parentae26c750b9b9ac87936f57a6fdd3254a2cf9ddbc (diff)
downloadSciPy2013-111ff5e2e333353d5d46bd924ac95d52adeece38.tar.gz
SciPy2013-111ff5e2e333353d5d46bd924ac95d52adeece38.tar.bz2
SciPy2013-111ff5e2e333353d5d46bd924ac95d52adeece38.zip
minor change
Diffstat (limited to 'scipy/views.py')
-rw-r--r--scipy/views.py4
1 files changed, 2 insertions, 2 deletions
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