Merged in part of [7375] from jmh@joelhalpern.com.

Now sending draft update notices to IRSG for IRTF stream drafts.  Fixes issue #1227.
 - Legacy-Id: 7402
Note: SVN reference [7375] has been migrated to Git commit 5f89d9ab996c4b0519ec23accb288e02961c62bf
This commit is contained in:
Henrik Levkowetz 2014-03-04 18:12:38 +00:00
parent b297c67765
commit ebc6608387

View file

@ -230,6 +230,12 @@ def change_stream(request, name):
old_stream = doc.stream
if new_stream != old_stream:
if new_stream and new_stream.slug and new_stream.slug == "irtf":
if not doc.notify:
doc.notify = "irtf@irtf.org"
elif "irtf@irtf.org" not in doc.notify:
doc.notify += ", irtf@irtf.org"
save_document_in_history(doc)
doc.stream = new_stream