From bad2825fab9f45f468414ed551bad9d987923600 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 5 Jun 2010 12:58:31 -0500 Subject: Updates for CSRF protection in Django 1.2.X Signed-off-by: Dan McGee --- packages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/views.py b/packages/views.py index 6838de0..9053906 100644 --- a/packages/views.py +++ b/packages/views.py @@ -316,7 +316,7 @@ def flag(request, name='', repo='', arch=''): context['form'] = form - return render_to_response('packages/flag.html', context) + return render_to_response('packages/flag.html', RequestContext(request, context)) def download(request, name='', repo='', arch=''): pkg = get_object_or_404(Package, -- cgit v1.2.3-24-g4f1b