Fix setting release notes in release edit

This commit is contained in:
rubenwardy
2024-06-22 15:24:40 +01:00
parent 019cd66033
commit c06ca52f4c
5 changed files with 18 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ class SwitchUserForm(FlaskForm):
def switch_user():
form = SwitchUserForm(formdata=request.form)
if form.validate_on_submit():
user = User.query.filter_by(username=form["username"].data).first()
user = User.query.filter_by(username=form.username.data).first()
if user is None:
flash("Unable to find user", "danger")
elif login_user(user):