Skip to content
Snippets Groups Projects
Commit 470232e9 authored by kaiyou's avatar kaiyou
Browse files

Fix the logging for profile creation

parent 03cbd08a
No related branches found
No related tags found
No related merge requests found
Pipeline #247 passed
......@@ -55,7 +55,8 @@ def create_profile():
profile.service = service
profile.comment = form.comment.data
models.db.session.add(profile)
models.log(models.History.CREATE, profile.username, profile.comment)
models.log(models.History.CREATE, profile.username, profile.comment,
user=flask_login.current_user, service=service, profile=profile)
models.db.session.commit()
return flask.redirect(utils.url_or_intent("account.home"))
return flask.render_template("profile_create.html",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment