addons-server/mkt/carriers/context_processors.py

9 строки
167 B
Python

from . import get_carrier
def carrier_data(request):
"""
Context processor that provides CARRIER to all views.
"""
return {'CARRIER': get_carrier()}