Skip to content

Commit 5ece489

Browse files
committed
Fixes ietf-tools#1680. Can't add minutes / agenda after deleting them. Commit ready for merge.
- Legacy-Id: 9527
1 parent 80d6564 commit 5ece489

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ietf/secr/proceedings/views.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,11 +912,12 @@ def redirection_back(meeting, group):
912912
handle_upload_file(file,disk_filename,meeting,material_type.slug)
913913

914914
# set Doc state
915-
state = State.objects.get(type=doc.type,slug='active' if doc.type.slug!='slides' else 'archived')
916915
if doc.type.slug=='slides':
917-
doc.set_state(state)
916+
doc.set_state(State.objects.get(type=doc.type,slug='archived'))
918917
doc.set_state(State.objects.get(type='reuse_policy',slug='single'))
919-
918+
else:
919+
doc.set_state(State.objects.get(type=doc.type,slug='active'))
920+
920921
# create session relationship, per Henrik we should associate documents to all sessions
921922
# for the current meeting (until tools support different materials for diff sessions)
922923
for s in sessions:

0 commit comments

Comments
 (0)