From 91164d202bb26ab5016b69d41274bd83cef68e00 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Tue, 27 Dec 2016 23:04:48 +0100 Subject: [PATCH] Rename deprecated context_instance kwarg --- wiki/views/accounts.py | 2 +- wiki/views/article.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/views/accounts.py b/wiki/views/accounts.py index d1b2f0fb..80cc884d 100644 --- a/wiki/views/accounts.py +++ b/wiki/views/accounts.py @@ -47,7 +47,7 @@ class Signup(CreateView): c = RequestContext( request, { 'error_msg': _('Account signup is only allowed for administrators.'), }) - return render_to_response("wiki/error.html", context_instance=c) + return render_to_response("wiki/error.html", context=c) return super(Signup, self).dispatch(request, *args, **kwargs) diff --git a/wiki/views/article.py b/wiki/views/article.py index aa222887..be4c84ec 100644 --- a/wiki/views/article.py +++ b/wiki/views/article.py @@ -875,7 +875,7 @@ def merge( 'merge2': article.current_revision, 'merge': True, 'content': content}) - return render_to_response(template_file, context_instance=c) + return render_to_response(template_file, context=c) class CreateRootView(FormView): -- 2.45.2