corrected context variable names in index view
This commit is contained in:
parent
129255e79c
commit
a008b0de80
@ -9,9 +9,9 @@
|
||||
|
||||
def index(request):
|
||||
context = {
|
||||
'news': News.objects.order_by('-postdate', '-id')[:10],
|
||||
'pkgs': Package.objects.exclude(repo__name__iexact='testing').order_by(
|
||||
'-last_update')[:15],
|
||||
'news_updates': News.objects.order_by('-postdate', '-id')[:10],
|
||||
'pkg_updates': Package.objects.exclude(
|
||||
repo__name__iexact='testing').order_by('-last_update')[:15],
|
||||
'repos': Repo.objects.all()
|
||||
}
|
||||
return render_to_response('public/index.html', context,
|
||||
|
Loading…
Reference in New Issue
Block a user