]> git.0d.be Git - panikweb.git/blobdiff - panikweb/context_processors.py
get navigation header from combo pages
[panikweb.git] / panikweb / context_processors.py
index 1187eff598e21a4f48e2f8e68365e77b809b3a42..8f610c41d570821d5e2b429f56d61379e4f1606e 100644 (file)
@@ -1,4 +1,5 @@
 from combo.apps.pwa.models import PwaSettings
+from combo.data.models import Page
 from combo.utils.cache import cache_during_request
 from django.conf import settings
 
@@ -12,6 +13,7 @@ def panikweb(request):
         'radio_meta_default_image_path': settings.RADIO_META_DEFAULT_IMAGE_PATH,
         'pwa_settings': cache_during_request(PwaSettings.singleton),
         'section': request.path.strip('/').split('/')[0],
+        'navigation_pages': Page.objects.filter(parent__isnull=True, exclude_from_navigation=False),
     }
     d.update(settings.TEMPLATE_VARS)
     return d