From 864437e25485c45a366ce87bec54158cdd0118d2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 19 Dec 2013 20:49:02 +0100 Subject: [PATCH] planet: Make the publish radio button work. --- templates/admin-planet-compose.html | 6 +++--- webapp/handlers_admin.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/admin-planet-compose.html b/templates/admin-planet-compose.html index 54c7914..ec4f19a 100644 --- a/templates/admin-planet-compose.html +++ b/templates/admin-planet-compose.html @@ -41,14 +41,14 @@
- +
diff --git a/webapp/handlers_admin.py b/webapp/handlers_admin.py index 97562c7..c8a68dd 100644 --- a/webapp/handlers_admin.py +++ b/webapp/handlers_admin.py @@ -84,6 +84,7 @@ class AdminPlanetComposeHandler(AdminBaseHandler): tags = self.get_argument("tags", "") status = self.get_argument("status", "draft") + assert status in ("draft", "published") author = self.accounts.find(self.current_user) -- 2.39.2