Fixed not working after click the "List Site Sponsors" in site menu bar. due to wrongly imported modules.
authorChen Lunpeng <forever.clp@gmail.com>
Fri, 17 Oct 2008 02:43:39 +0000
changeset 366 0b8700836d4f
parent 365 74dec172944e
child 367 5d5730f65fc8
Fixed not working after click the "List Site Sponsors" in site menu bar. due to wrongly imported modules. Patch by: Chen Lunpeng Review by: to-be-reviewed
app/soc/views/site/sponsor/list.py
--- 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)