Skip to content

Commit

Permalink
Merge pull request #453 from wuvt/fix_article_creation
Browse files Browse the repository at this point in the history
Fix article creation
  • Loading branch information
mutantmonkey authored Apr 26, 2024
2 parents bc9283c + 5903514 commit a424455
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 a424455

Please sign in to comment.