[extensions-web] Fix the rest of the IndentationError



commit e080f29118b9b8bc04461035ac87d91ab60a30ea
Author: Jeff Schroeder <jeffschroeder computer org>
Date:   Thu Apr 26 05:17:10 2012 -0700

    Fix the rest of the IndentationError
    
    Hopefully this takes care of it

 sweettooth/extensions/views.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index fa8d373..75606cb 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -416,14 +416,14 @@ def upload_file(request):
                 transaction.commit()
 
                 return redirect(version)
-     else:
-         form = UploadForm()
+    else:
+        form = UploadForm()
 
-     # XXX - context managers may dirty the connection, so we need
-     # to force a clean state after this.
-     response = render(request, 'extensions/upload.html', dict(form=form,
-                                                               errors=errors))
+    # XXX - context managers may dirty the connection, so we need
+    # to force a clean state after this.
+    response = render(request, 'extensions/upload.html', dict(form=form,
+                                                              errors=errors))
 
-     transaction.set_clean()
+    transaction.set_clean()
 
     return response



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]