Skip to content
Snippets Groups Projects
Commit f2c6d3ac authored by Jonah Kanner's avatar Jonah Kanner :nerd: Committed by GraceDB
Browse files

first light for public page

parent 20bb87a9
No related branches found
No related tags found
No related merge requests found
...@@ -33,4 +33,8 @@ legacy_urlpatterns = [ ...@@ -33,4 +33,8 @@ legacy_urlpatterns = [
urlpatterns = legacy_urlpatterns + [ urlpatterns = legacy_urlpatterns + [
url(r'^(?P<superevent_id>{regex})/'.format(regex=Superevent.ID_REGEX), url(r'^(?P<superevent_id>{regex})/'.format(regex=Superevent.ID_REGEX),
include(suburlpatterns)), include(suburlpatterns)),
# table of all public events
url(r'^public/$', views.SupereventPublic.as_view(), name="pubic-alerts"),
] ]
...@@ -2,6 +2,7 @@ import logging ...@@ -2,6 +2,7 @@ import logging
import os import os
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic import ListView
from guardian.shortcuts import get_objects_for_user from guardian.shortcuts import get_objects_for_user
...@@ -115,3 +116,9 @@ class SupereventFileList(SupereventDetailView): ...@@ -115,3 +116,9 @@ class SupereventFileList(SupereventDetailView):
# NOTE: file "detail" or downloads (and associated permissions) are # NOTE: file "detail" or downloads (and associated permissions) are
# handled through the API. Links on the file list page point to the # handled through the API. Links on the file list page point to the
# API file download page. # API file download page.
class SupereventPublic(ListView):
model = Superevent
template_name = 'superevents/public.html'
#filter_permissions = ['superevents.view_superevent']
#log_view_permission = 'superevents.view_log'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment