poulpe/shared/shared.py

12 lines
246 B
Python
Raw Permalink Normal View History

2017-02-20 18:42:37 +01:00
from django.contrib.auth import get_user_model
User = get_user_model()
def context_processor(request):
'''Append extra data to the context of the given request'''
data = {
"user": request.user,
}
return data