Source code for django_agent_trust.context_processors
[docs]defagent(request):""" A context processor that sets the template context variable ``agent`` to the value of ``request.agent``. """return{'agent':getattr(request,'agent',None)}
Quick search
Enter search terms or a module, class or function name.