Skip to content

Commit

Permalink
redirect user back to /study/create after login
Browse files Browse the repository at this point in the history
  • Loading branch information
psawaya committed Apr 2, 2012
1 parent c864799 commit 4c133dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlacePulse/study.py
Expand Up @@ -15,7 +15,7 @@
@study.route("/study/create/")
def serve_create_study():
if getLoggedInUser() is None:
return redirect("/login/")
return redirect(url_for('login.signin',next="/study/create"))
return auto_template('study_create.html')

@study.route('/study/create/',methods=['POST'])
Expand Down

0 comments on commit 4c133dc

Please sign in to comment.