From: Michael Tremer Date: Sun, 29 Mar 2015 22:06:28 +0000 (+0200) Subject: planet: Fix composing new posts X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0cafd594f0e14662f30261b16bf5d47a5c47f7e;p=ipfire.org.git planet: Fix composing new posts --- diff --git a/webapp/handlers_admin.py b/webapp/handlers_admin.py index d7da2b52..b7a3f9d1 100644 --- a/webapp/handlers_admin.py +++ b/webapp/handlers_admin.py @@ -57,10 +57,8 @@ class AdminPlanetComposeHandler(AdminBaseHandler): status = self.get_argument("status", "draft") assert status in ("draft", "published") - author = self.accounts.find(self.current_user) - entry = self.planet.create(title=title, markdown=markdown, - author=author, status=status) + author=self.current_user, status=status) self.redirect("/planet")