diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-10-10 18:51:21 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-10-10 18:51:21 -0400 |
commit | f260843deb371a7d2ef5a265f52e643fcf64f86f (patch) | |
tree | d69e668dc8499ce59dbefc96dd1fba9fd4cf0a00 /devel | |
parent | 0e0265a624947fcb13860cfcc24078e79af9346b (diff) |
use RequestContext because its standard
Diffstat (limited to 'devel')
-rw-r--r-- | devel/views.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/devel/views.py b/devel/views.py index 2b78e533..64d1531f 100644 --- a/devel/views.py +++ b/devel/views.py @@ -1,7 +1,6 @@ from django import forms from django.http import HttpResponseRedirect from django.contrib.auth.models import User -from archweb_dev.main.utils import render_response from archweb_dev.main.models import Package, Todolist from archweb_dev.main.models import Arch, Repo from archweb_dev.main.models import UserProfile, News @@ -13,14 +12,15 @@ def index(request): maintainer=request.user).filter( needupdate=True).order_by('repo', 'pkgname') - return render_response( - request, 'devel/index.html', - {'pkgs': pkgs, 'todos': todos, 'maint': request.user, + return render_to_response( + 'devel/index.html', + RequestContext(request, {'pkgs': pkgs, 'todos': todos, + 'maint': request.user, 'repos': Repo.objects.all(), 'arches': Arch.objects.all(), 'maintainers': [User(id=0, username="orphan", first_name="Orphans")] + list( User.objects.all()) - }) + })) def change_notify(request): maint = User.objects.get(username=request.user.username) @@ -58,7 +58,8 @@ def change_profile(request): return HttpResponseRedirect('/devel/') else: form = ProfileForm(initial={'email': request.user.email}) - return render_response(request, 'devel/profile.html', {'form': form}) + return render_to_response('devel/profile.html', + RequestContext(request, {'form': form})) def siteindex(request): news = News.objects.order_by('-postdate', '-id')[:10] |