diff options
Diffstat (limited to 'layerindex/context_processors.py')
-rw-r--r-- | layerindex/context_processors.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layerindex/context_processors.py b/layerindex/context_processors.py index c21c4a9161..db8e3fa34f 100644 --- a/layerindex/context_processors.py +++ b/layerindex/context_processors.py @@ -8,6 +8,7 @@ from layerindex.models import Branch, LayerItem from django.contrib.sites.models import Site def layerindex_context(request): + import settings site = Site.objects.get_current() if site and site.name and site.name != 'example.com': site_name = site.name @@ -17,5 +18,6 @@ def layerindex_context(request): 'all_branches': Branch.objects.exclude(name='oe-classic').order_by('sort_priority'), 'unpublished_count': LayerItem.objects.filter(status='N').count(), 'oe_classic': Branch.objects.filter(name='oe-classic'), - 'site_name': site_name + 'site_name': site_name, + 'rrs_enabled': 'rrs' in settings.INSTALLED_APPS, } |