summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-10 18:51:21 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-10 18:51:21 -0400
commitf260843deb371a7d2ef5a265f52e643fcf64f86f (patch)
treed69e668dc8499ce59dbefc96dd1fba9fd4cf0a00 /packages/views.py
parent0e0265a624947fcb13860cfcc24078e79af9346b (diff)
use RequestContext because its standard
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/views.py b/packages/views.py
index 69f97dbb..75bdc56f 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -9,7 +9,6 @@ from django.contrib.admin.widgets import AdminDateWidget
from django.views.generic import list_detail
from django.db.models import Q
import datetime
-from archweb_dev.main.utils import render_response
from archweb_dev.main.models import Package, PackageFile
from archweb_dev.main.models import Arch, Repo, Signoff
from archweb_dev.main.utils import make_choice
@@ -144,7 +143,7 @@ def search(request, page=None):
def files(request, pkgid):
pkg = get_object_or_404(Package, id=pkgid)
files = PackageFile.objects.filter(pkg=pkgid)
- return render_response(request, 'packages/files.html', {'pkg':pkg,'files':files})
+ return render_to_response('packages/files.html', RequestContext(request, {'pkg':pkg,'files':files}))
def unflag(request, pkgid):
pkg = get_object_or_404(Package, id=pkgid)
@@ -154,8 +153,8 @@ def unflag(request, pkgid):
def signoffs(request):
packages = Package.objects.filter(repo__name="Testing").order_by("pkgname")
- return render_response(request, 'packages/signoffs.html',
- {'packages': packages})
+ return render_to_response('packages/signoffs.html',
+ RequestContext(request, {'packages': packages}))
def signoff_package(request, arch, pkgname):
pkg = get_object_or_404(Package,