diff options
Diffstat (limited to 'scipy/views.py')
-rw-r--r-- | scipy/views.py | 4 |
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 |