diff foodtruck/views/menu.py @ 610:efc1dc916e7c

admin: Configuration changes. * Move publish targets to site configuration. * Add direct accessor for the current site.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 28 Jan 2016 22:17:58 -0800
parents c6bc0ef03f82
children 3885421c29a3
line wrap: on
line diff
--- a/foodtruck/views/menu.py	Thu Jan 28 22:16:47 2016 -0800
+++ b/foodtruck/views/menu.py	Thu Jan 28 22:17:58 2016 -0800
@@ -9,7 +9,7 @@
         'title': "Dashboard",
         'icon': 'speedometer'})
 
-    site = g.sites.get().piecrust_app
+    site = g.site.piecrust_app
     for s in site.sources:
         if s.is_theme_source:
             continue