From: Michael Tremer Date: Thu, 19 Dec 2013 19:49:02 +0000 (+0100) Subject: planet: Make the publish radio button work. X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=commitdiff_plain;h=864437e25485c45a366ce87bec54158cdd0118d2 planet: Make the publish radio button work. --- 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)