[extensions-web] extensions: Don't add context variables we don't use
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: Don't add context variables we don't use
- Date: Wed, 7 Mar 2012 21:07:11 +0000 (UTC)
commit d50d577cc92e7fb6a1e0356cd888fadd99d7a76f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Mar 5 15:32:27 2012 -0500
extensions: Don't add context variables we don't use
The paginator/page_obj context variables are relics from a more...
primtitive age.
sweettooth/extensions/views.py | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 459fec3..8c8a01a 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -149,12 +149,8 @@ def ajax_extensions_list(request):
except InvalidPage:
raise Http404()
- context = dict(paginator=paginator,
- page_obj=page_obj,
- extension_list=page_obj.object_list)
-
- return dict(html=render_to_string('extensions/list_bare.html', context),
- numpages = paginator.num_pages)
+ return dict(html=render_to_string('extensions/list_bare.html', dict(extension_list=page_obj.object_list)),
+ numpages=paginator.num_pages)
@model_view(models.Extension)
def extension_view(request, obj, **kwargs):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]