12 lines
246 B
Python
12 lines
246 B
Python
|
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
|