actions: Replace stream.add with stream.append in process_new_human_user.

stream is a list not a set. It used to be set
and was changed to stream before getting merged.
This commit is contained in:
Vishnu Ks
2017-11-16 04:56:54 +05:30
committed by Tim Abbott
parent f99fd20f8f
commit 6f955fbf34

View File

@@ -337,7 +337,7 @@ def process_new_human_user(user_profile, prereg_user=None, newsletter_data=None,
default_stream_group_streams = default_stream_group.streams.all() default_stream_group_streams = default_stream_group.streams.all()
for stream in default_stream_group_streams: for stream in default_stream_group_streams:
if stream not in streams: if stream not in streams:
streams.add(stream) streams.append(stream)
bulk_add_subscriptions(streams, [user_profile], acting_user=acting_user) bulk_add_subscriptions(streams, [user_profile], acting_user=acting_user)