aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-27 15:04:56 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-27 15:08:42 +0200
commitadf53036a5c10d9f32e2505d23b72b3bd89728c9 (patch)
tree85dfaa777a968d87b1c1335e73d8ec8266c51f52
parent2041ceae1ffd29630988c47fc766a1b9dcf9bbf7 (diff)
downloadmediagoblin-adf53036a5c10d9f32e2505d23b72b3bd89728c9.tar.lz
mediagoblin-adf53036a5c10d9f32e2505d23b72b3bd89728c9.tar.xz
mediagoblin-adf53036a5c10d9f32e2505d23b72b3bd89728c9.zip
Remove extra indentation left over from previous commit.
This only removes an unneeded extra indentation, left over from the previous removal of code around. Extra commit so it is easy to check that it only changes indentation.
-rw-r--r--mediagoblin/submit/views.py48
1 files changed, 24 insertions, 24 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index c9735fd3..e964ec12 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -123,30 +123,30 @@ def add_collection(request, media=None):
submit_form = submit_forms.AddCollectionForm(request.form)
if request.method == 'POST' and submit_form.validate():
- collection = request.db.Collection()
-
- collection.title = unicode(submit_form.title.data)
- collection.description = unicode(submit_form.description.data)
- collection.creator = request.user.id
- collection.generate_slug()
-
- # Make sure this user isn't duplicating an existing collection
- existing_collection = request.db.Collection.find_one({
- 'creator': request.user.id,
- 'title':collection.title})
-
- if existing_collection:
- add_message(request, messages.ERROR,
- _('You already have a collection called "%s"!') \
- % collection.title)
- else:
- collection.save()
-
- add_message(request, SUCCESS,
- _('Collection "%s" added!') % collection.title)
-
- return redirect(request, "mediagoblin.user_pages.user_home",
- user=request.user.username)
+ collection = request.db.Collection()
+
+ collection.title = unicode(submit_form.title.data)
+ collection.description = unicode(submit_form.description.data)
+ collection.creator = request.user.id
+ collection.generate_slug()
+
+ # Make sure this user isn't duplicating an existing collection
+ existing_collection = request.db.Collection.find_one({
+ 'creator': request.user.id,
+ 'title':collection.title})
+
+ if existing_collection:
+ add_message(request, messages.ERROR,
+ _('You already have a collection called "%s"!') \
+ % collection.title)
+ else:
+ collection.save()
+
+ add_message(request, SUCCESS,
+ _('Collection "%s" added!') % collection.title)
+
+ return redirect(request, "mediagoblin.user_pages.user_home",
+ user=request.user.username)
return render_to_response(
request,