Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactoring fall through on invalid saves.

  • Loading branch information...
commit 55a5834ff0e7e4dbd694d273310077273327de39 1 parent e5cc13e
@justinabrahms justinabrahms authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.