app/soc/views/site/sponsor/list.py
changeset 366 0b8700836d4f
parent 365 74dec172944e
child 369 2955eff2bf94
--- a/app/soc/views/site/sponsor/list.py	Thu Oct 16 23:31:57 2008 +0000
+++ b/app/soc/views/site/sponsor/list.py	Fri Oct 17 02:43:39 2008 +0000
@@ -22,8 +22,8 @@
   ]
 
 
-from soc.logic import models
 from soc.views import helper
+from soc.logic.models import sponsor
 from soc.views.helper import access
 from soc.views.helper import decorators
 
@@ -64,7 +64,7 @@
       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=limit + 1,
+  sponsors = sponsor.logic.getForLimitAndOffset(limit=limit + 1,
                                                        offset=offset)
 
   context['pagination_form'] = helper.lists.makePaginationForm(request, limit)