Commit 8cf0cc7a authored by fred's avatar fred

fix context process to return a dict

parent 7697712c
......@@ -4,4 +4,4 @@ def internal_ip(request):
internal_ip = request.META.get('HTTP_X_FORWARDED_FOR') or \
request.META.get('HTTP_X_REAL_IP') or \
request.META.get('REMOTE_ADDR')
return internal_ip in settings.INTERNAL_IPS
return {'internal_ip': internal_ip in settings.INTERNAL_IPS}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment