aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/staff/jams/index.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-08-07 15:09:08 +0100
committerGravatar Gareth Coles <[email protected]>2018-08-07 15:09:16 +0100
commitaf54db6c136138c66cf5ca72419989525a0baa5c (patch)
tree8519aeab8d45277c51797c7dc23aacf3b56ed1bb /pysite/views/staff/jams/index.py
parentA wizard is never late, nor is he early. (diff)
Initial project layout for django
Diffstat (limited to 'pysite/views/staff/jams/index.py')
-rw-r--r--pysite/views/staff/jams/index.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/pysite/views/staff/jams/index.py b/pysite/views/staff/jams/index.py
deleted file mode 100644
index 40a8387c..00000000
--- a/pysite/views/staff/jams/index.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from pysite.base_route import RouteView
-from pysite.constants import ALL_STAFF_ROLES, JAM_STATES
-from pysite.decorators import require_roles
-from pysite.mixins import DBMixin
-
-
-class StaffView(RouteView, DBMixin):
- path = "/jams"
- name = "jams.index"
- table_name = "code_jams"
-
- @require_roles(*ALL_STAFF_ROLES)
- def get(self):
- jams = self.db.get_all(self.table_name)
- return self.render("staff/jams/index.html", jams=jams, states=JAM_STATES)