Files
python-tdd/src/core/context_processors.py

4 lines
165 B
Python

def user_palette(request):
if request.user.is_authenticated:
return {"user_palette": request.user.palette}
return {"user_palette": "palette-default"}