mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
settings: Rename signup_notifications_stream realm setting.
This commit renames the realm-level setting 'signup_notifications_stream' to 'signup_announcements_stream'. The new name reflects better what the setting does.
This commit is contained in:
committed by
Tim Abbott
parent
ab453fbe20
commit
ee612dafac
@@ -342,7 +342,7 @@ class Realm(models.Model): # type: ignore[django-manager-missing] # django-stub
|
||||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
signup_notifications_stream = models.ForeignKey(
|
||||
signup_announcements_stream = models.ForeignKey(
|
||||
"Stream",
|
||||
related_name="+",
|
||||
null=True,
|
||||
@@ -792,12 +792,12 @@ class Realm(models.Model): # type: ignore[django-manager-missing] # django-stub
|
||||
return self.new_stream_announcements_stream
|
||||
return None
|
||||
|
||||
def get_signup_notifications_stream(self) -> Optional["Stream"]:
|
||||
def get_signup_announcements_stream(self) -> Optional["Stream"]:
|
||||
if (
|
||||
self.signup_notifications_stream is not None
|
||||
and not self.signup_notifications_stream.deactivated
|
||||
self.signup_announcements_stream is not None
|
||||
and not self.signup_announcements_stream.deactivated
|
||||
):
|
||||
return self.signup_notifications_stream
|
||||
return self.signup_announcements_stream
|
||||
return None
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user