models: Add `is_announcement_only` to Stream.to_dict().

This commit is contained in:
Shubham Padia 2018-05-14 15:36:25 +05:30 committed by Tim Abbott
parent f59adfa67c
commit 3703013b4f
2 changed files with 2 additions and 0 deletions

View File

@ -987,6 +987,7 @@ class Stream(models.Model):
stream_id=self.id,
description=self.description,
invite_only=self.invite_only,
is_announcement_only=self.is_announcement_only,
history_public_to_subscribers=self.history_public_to_subscribers
)

View File

@ -1123,6 +1123,7 @@ class EventsRegisterTest(ZulipTestCase):
('streams', check_list(check_dict_only([
('description', check_string),
('invite_only', check_bool),
('is_announcement_only', check_bool),
('name', check_string),
('stream_id', check_int),
('history_public_to_subscribers', check_bool)]))),