Skip to content

Commit

Permalink
update signin.py: signined user no need to see signinview
Browse files Browse the repository at this point in the history
  • Loading branch information
samkugji committed Jul 22, 2016
1 parent 1c6820d commit 43a7a64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions english_diary/users/views/signin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
class SigninView(View):

def get(self, request, *args, **kwargs):

# maintain signed user
if request.user.is_authenticated():
return redirect("home")

return render(
request,
"users/signin.html",
Expand Down

0 comments on commit 43a7a64

Please sign in to comment.