Browse files

refactoring fall through on invalid saves.

  • Loading branch information...
1 parent e5cc13e commit 55a5834ff0e7e4dbd694d273310077273327de39 @justinabrahms justinabrahms committed Sep 8, 2010
Showing with 3 additions and 9 deletions.
  1. +3 −9 django_website/apps/aggregator/views.py
View
12 django_website/apps/aggregator/views.py
@@ -29,12 +29,6 @@ def add_feed(request, feed_type_slug):
if f.is_valid():
if f.save():
return HttpResponseRedirect(reverse('community-index'))
- else:
- # not sure when this happens.
- return render_to_response('aggregator/add_feed.html',
- {'form':f},
- context_instance=RequestContext(request))
- else:
- return render_to_response('aggregator/add_feed.html',
- {'form':f},
- context_instance=RequestContext(request))
+ return render_to_response('aggregator/add_feed.html',
+ {'form':f},
+ context_instance=RequestContext(request))

0 comments on commit 55a5834

Please sign in to comment.