From 819395928e25e07af7e4e248ed8559f56ef17880 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Tue, 24 Jan 2012 13:19:25 +0000 Subject: [PATCH] Be more conservative in estimating the stream, for individual submissions we should not set a stream but let it be decided later on - Legacy-Id: 3853 --- ietf/submit/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ietf/submit/utils.py b/ietf/submit/utils.py index 0148e86fd..9fe1a4919 100644 --- a/ietf/submit/utils.py +++ b/ietf/submit/utils.py @@ -116,16 +116,17 @@ def perform_postREDESIGN(request, submission): stream_slug = "iab" elif draft.name.startswith("draft-irtf-"): stream_slug = "irtf" - else: + elif draft.name.startswith("draft-ietf-") and (draft.group.type_id != "individ" or was_rfc): stream_slug = "ietf" - draft.stream = StreamName.objects.get(slug=stream_slug) + if stream_slug: + draft.stream = StreamName.objects.get(slug=stream_slug) draft.expires = datetime.datetime.now() + datetime.timedelta(settings.INTERNET_DRAFT_DAYS_TO_EXPIRE) draft.save() draft.set_state(State.objects.get(type="draft", slug="active")) - if draft.stream_id == "ietf": + if draft.stream_id == "ietf" and draft.group.type_id != "individ": # automatically set state "WG Document" draft.set_state(State.objects.get(type="draft-stream-%s" % draft.stream_id, slug="wg-doc"))