Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
models: Move UserProfile.property_types to UserBaseSettings.
sahil8392f386aed0fce
diff --git a/zerver/models.py b/zerver/models.pyindex 8da4c4e72a6..457d965afb7 100644--- a/zerver/models.py+++ b/zerver/models.py@@ -1246,6 +1246,22 @@ class UserBaseSettings(models.Model):realm_name_in_notifications: bool = models.BooleanField(default=False)presence_enabled: bool = models.BooleanField(default=True)+ # Define the types of the various automatically managed properties+ property_types = dict(+ color_scheme=int,+ default_language=str,+ default_view=str,+ demote_inactive_streams=int,+ dense_mode=bool,+ emojiset=str,+ fluid_layout_width=bool,+ high_contrast_mode=bool,+ left_side_userlist=bool,+ starred_message_counts=bool,+ translate_emoticons=bool,+ twenty_four_hour_time=bool,+ )+class Meta:abstract = True@@ -1458,22 +1474,6 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings):objects: UserManager = UserManager()- # Define the types of the various automatically managed properties- property_types = dict(- color_scheme=int,- default_language=str,- default_view=str,- demote_inactive_streams=int,- dense_mode=bool,- emojiset=str,- fluid_layout_width=bool,- high_contrast_mode=bool,- left_side_userlist=bool,- starred_message_counts=bool,- translate_emoticons=bool,- twenty_four_hour_time=bool,- )-notification_setting_types = dict(enable_desktop_notifications=bool,enable_digest_emails=bool,