Skip to content

Commit

Permalink
Fix from review comment.
Browse files Browse the repository at this point in the history
Silly code, you can be simpler!
  • Loading branch information
jsocol committed Apr 1, 2013
1 parent 6fd4384 commit affcf12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def logout(request):
auth.logout(request)
statsd.incr('user.logout')

next_url = get_next_url(request) if 'next' in request.GET else ''
res = HttpResponseRedirect(next_url or reverse('home'))
res = HttpResponseRedirect(get_next_url(request) or reverse('home'))
res.delete_cookie(settings.SESSION_EXISTS_COOKIE)
return res

Expand Down

0 comments on commit affcf12

Please sign in to comment.