app/soc/views/site/sponsor/list.py
changeset 309 7190b224c701
parent 305 972d28056d9d
child 316 9efdc7bc3565
--- a/app/soc/views/site/sponsor/list.py	Sun Oct 12 18:11:20 2008 +0000
+++ b/app/soc/views/site/sponsor/list.py	Sun Oct 12 18:30:37 2008 +0000
@@ -23,6 +23,7 @@
 
 
 import soc.logic
+from soc.logic import models
 from soc.views import simple
 from soc.views import helper
 from soc.views.helper import access
@@ -49,7 +50,7 @@
       offset=request.GET.get('offset'), limit=request.GET.get('limit'))
   
   # Fetch one more to see if there should be a 'next' link
-  sponsors = soc.logic.sponsor_logic.getForLimitAndOffset(limit + 1, offset=offset)
+  sponsors = models.sponsor.logic.getForLimitAndOffset(limit + 1, offset=offset)
 
   context['pagination_form'] = helper.lists.makePaginationForm(request, limit)