Source code for journals.context_processors

__copyright__ = "Copyright 2016-2018, Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"

from ontology.models import Branch, AcademicField
from .models import Journal


[docs]def journals_processor(request): """Append all Journals to the context of all views.""" return { "branches": Branch.objects.all(), "acad_fields": AcademicField.objects.all(), "journals": Journal.objects.order_by("name"), }