File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -997,7 +997,9 @@ def redirection_back(meeting, group):
997997
998998 # gather DocEvents
999999 # include deleted material to catch deleted doc events
1000- docs = session .materials .all ()
1000+ #docs = session.materials.all()
1001+ # Don't report on draft DocEvents since the secr/materials app isn't managing them
1002+ docs = session .materials .exclude (type = 'draft' )
10011003 docevents = DocEvent .objects .filter (doc__in = docs )
10021004
10031005 path = get_proceedings_path (meeting ,group )
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ def get_materials(group,meeting):
2020 for doc in session .materials .exclude (states__slug = 'deleted' ).order_by ('order' ):
2121 if doc .type .slug in ('minutes' ,'agenda' ):
2222 materials [doc .type .slug ] = doc
23+ elif doc .type .slug == 'draft' :
24+ continue
25+ # drafts are currently managed directly by the session and document views
2326 elif doc not in materials [doc .type .slug ]:
2427 materials [doc .type .slug ].append (doc )
2528 return materials
You can’t perform that action at this time.
0 commit comments