Skip to content

Commit

Permalink
Fix article creation
Browse files Browse the repository at this point in the history
This was broken by the pinned article changes and was not caught because
we didn't test creating articles. Fixes #452.
  • Loading branch information
mutantmonkey committed Apr 26, 2024
1 parent bc9283c commit 5903514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wuvt/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5903514

Please sign in to comment.