Source code for journals.context_processors
__copyright__ = "Copyright 2016-2018, Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
from scipost.constants import SCIPOST_DISCIPLINES
from .models import Journal
[docs]def journals_processor(request):
"""Append all Journals to the context of all views."""
return {
'scipost_disciplines': SCIPOST_DISCIPLINES,
'journals': Journal.objects.order_by('name')
}