"""This module holds the context processors for the ``theme`` app."""

from .models import Theme


def theme(request):
    """Context processor to add the default theme in context.

    Parameters
    ----------
    request : HttpRequest

    Returns
    -------
    dict
        The dictionary to add in global context.
    """

    return {'theme': Theme.objects.get_default()}
