Source

berlotto.net / template_processors.py

Full commit
1
2
3
4
5
6

def user(request):
    if hasattr(request, 'user'):
        return {'user':request.user }
    return {}