Preserve the assumptions in the secr/proceedings code by isolating it from drafts now appearing in sessionpresentations. Commit ready for merge.
- Legacy-Id: 10857
This commit is contained in:
parent
e8d40c8402
commit
d17564d695
|
@ -997,7 +997,9 @@ def upload_unified(request, meeting_num, acronym=None, session_id=None):
|
|||
|
||||
# gather DocEvents
|
||||
# include deleted material to catch deleted doc events
|
||||
docs = session.materials.all()
|
||||
#docs = session.materials.all()
|
||||
# Don't report on draft DocEvents since the secr/materials app isn't managing them
|
||||
docs = session.materials.exclude(type='draft')
|
||||
docevents = DocEvent.objects.filter(doc__in=docs)
|
||||
|
||||
path = get_proceedings_path(meeting,group)
|
||||
|
|
|
@ -20,6 +20,9 @@ def get_materials(group,meeting):
|
|||
for doc in session.materials.exclude(states__slug='deleted').order_by('order'):
|
||||
if doc.type.slug in ('minutes','agenda'):
|
||||
materials[doc.type.slug] = doc
|
||||
elif doc.type.slug == 'draft':
|
||||
continue
|
||||
# drafts are currently managed directly by the session and document views
|
||||
elif doc not in materials[doc.type.slug]:
|
||||
materials[doc.type.slug].append(doc)
|
||||
return materials
|
||||
|
|
Loading…
Reference in a new issue