From b50500ae2e2d77bf6aa07502933a4fa6b3b4571b Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Sun, 13 Sep 2020 18:02:42 -0400 Subject: [PATCH] Avoid changing the default param --- OpenBench/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenBench/views.py b/OpenBench/views.py index 6279148..1f57b20 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -33,10 +33,11 @@ from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from htmlmin.decorators import not_minified_response -def render(request, template, data={}): +def render(request, template, content={}): template = 'OpenBench/{0}'.format(template) + data = content.copy() data.update({'config' : OpenBench.config.OPENBENCH_CONFIG}) if request.user.is_authenticated: