diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-10-31 13:30:54 -0200 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:24:48 -0200 |
commit | 1c9d62d5163b6cb24a515027db8db4de7d8c224a (patch) | |
tree | 0fc76fe5ffe1d34c740b14438162cab4a04f34ea /mirrors/views.py | |
parent | 0b87e768917c59b40fa757381d009b7a05c2ee3a (diff) |
use RequestContext in mirrors.views.choose
Diffstat (limited to 'mirrors/views.py')
-rw-r--r-- | mirrors/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mirrors/views.py b/mirrors/views.py index 80b5eb18..da54774f 100644 --- a/mirrors/views.py +++ b/mirrors/views.py @@ -3,6 +3,7 @@ from django.core.urlresolvers import reverse from django.db.models import Q from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render_to_response +from django.template import RequestContext from archweb.main.models import Arch, Mirror, MirrorUrl from archweb.main.utils import make_choice @@ -32,7 +33,8 @@ def choose(request): else: form = MirrorlistForm() - return render_to_response('mirrors/index.html', {'mirrorlist_form': form}) + return render_to_response('mirrors/index.html', {'mirrorlist_form': form}, + context_instance=RequestContext(request)) def generate(request, arch='i686', country=None): # do a quick sanity check on the architecture |