app/soc/views/site/sponsor/list.py
changeset 365 74dec172944e
parent 360 5ad9cabb5892
child 366 0b8700836d4f
--- a/app/soc/views/site/sponsor/list.py	Thu Oct 16 23:26:58 2008 +0000
+++ b/app/soc/views/site/sponsor/list.py	Thu Oct 16 23:31:57 2008 +0000
@@ -23,10 +23,9 @@
 
 
 from soc.logic import models
-from soc.logic.models import sponsor
 from soc.views import helper
-from soc.views import simple
 from soc.views.helper import access
+from soc.views.helper import decorators
 
 import soc.logic
 import soc.models.sponsor as sponsor_model
@@ -37,6 +36,7 @@
 
 DEF_SITE_SPONSOR_LIST_ALL_TMPL = 'soc/group/list/all.html'
 
+@decorators.view
 def all(request, page=None, template=DEF_SITE_SPONSOR_LIST_ALL_TMPL):
   """Show a list of all Sponsors (limit rows per page).
   
@@ -82,4 +82,4 @@
                   'entity_type_plural': sponsor_model.Sponsor.GROUP_TYPE_PLURAL,
                   'entity_type_short': sponsor_model.Sponsor.GROUP_TYPE_SHORT})
 
-  return helper.responses.respond(request, template, context)
+  return helper.responses.respond(request, template, context)
\ No newline at end of file