From 5903514736f5b40476cfbc89756eb81769124e33 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Thu, 25 Apr 2024 19:49:52 -0700 Subject: [PATCH] Fix article creation This was broken by the pinned article changes and was not caught because we didn't test creating articles. Fixes #452. --- wuvt/admin/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wuvt/admin/views.py b/wuvt/admin/views.py index 80e257b..7c2eeb4 100644 --- a/wuvt/admin/views.py +++ b/wuvt/admin/views.py @@ -358,9 +358,9 @@ def article_add(): author_id=form.author_id.data, summary=form.summary.data, content=form.content.data, - published=form.published.data, - pinned_article=form.pinned_article.data) + published=form.published.data) article.front_page = form.front_page.data + article.pinned_article = form.pinned_article.data if article.published is True: article.datetime = datetime.datetime.utcnow()