6be19a463c
now var components are in shared installing widget_tweaks
11 lines
246 B
Python
11 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
|