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
--- 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)