app/soc/views/site/sponsor/list.py
changeset 337 cb7d22b1e7d8
parent 324 05e21c089be6
child 344 d135c8c09967
--- a/app/soc/views/site/sponsor/list.py	Wed Oct 15 13:54:00 2008 +0000
+++ b/app/soc/views/site/sponsor/list.py	Wed Oct 15 13:59:52 2008 +0000
@@ -52,7 +52,8 @@
       offset=request.GET.get('offset'), limit=request.GET.get('limit'))
   
   # Fetch one more to see if there should be a 'next' link
-  sponsors = models.sponsor.logic.getForLimitAndOffset(limit + 1, offset=offset)
+  sponsors = models.sponsor.logic.getForLimitAndOffset(limit=limit + 1,
+                                                       offset=offset)
 
   context['pagination_form'] = helper.lists.makePaginationForm(request, limit)
   
@@ -62,7 +63,8 @@
                     'list_heading': 'soc/group/list/group_heading.html'}
                       
   context = helper.lists.setList(request, context, sponsors, 
-                                 offset, limit, list_templates)
+                                 offset=offset, limit=limit, 
+                                 list_templates=list_templates)
                                  
   context['group_type'] = 'Sponsor'