Source

milton / context_preprocessors / __init__.py

Full commit
1
2
3
4
5
6
7
8
from django.contrib.sites.models import Site
from milton.models import Section

def general(request):
    return {
        "site": Site.objects.get_current(),
        "sections": Section.objects.all(),
    }