Only set state "WG Document" on revision 00 documents, fixes problem
with overwriting manually set WG states when a new version is submitted. Fixes #797. - Legacy-Id: 4074
This commit is contained in:
parent
041858dd8a
commit
e7cf907c94
|
@ -132,7 +132,7 @@ def perform_postREDESIGN(request, submission):
|
|||
draft.save()
|
||||
|
||||
draft.set_state(State.objects.get(type="draft", slug="active"))
|
||||
if draft.stream_id == "ietf" and draft.group.type_id == "wg":
|
||||
if draft.stream_id == "ietf" and draft.group.type_id == "wg" and draft.rev == "00":
|
||||
# automatically set state "WG Document"
|
||||
draft.set_state(State.objects.get(type="draft-stream-%s" % draft.stream_id, slug="wg-doc"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue