mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
export: Export AlertWord table.
This commit is contained in:
@@ -30,6 +30,7 @@ from scripts.lib.zulip_tools import overwrite_symlink
|
||||
from zerver.lib.avatar_hash import user_avatar_path_from_ids
|
||||
from zerver.lib.pysa import mark_sanitized
|
||||
from zerver.models import (
|
||||
AlertWord,
|
||||
Attachment,
|
||||
BotConfigData,
|
||||
BotStorageData,
|
||||
@@ -621,6 +622,13 @@ def get_realm_config() -> Config:
|
||||
custom_fetch=fetch_user_profile,
|
||||
)
|
||||
|
||||
Config(
|
||||
table='zerver_alertword',
|
||||
model=AlertWord,
|
||||
normal_parent=user_profile_config,
|
||||
parent_key='user_profile__in',
|
||||
)
|
||||
|
||||
user_groups_config = Config(
|
||||
table='zerver_usergroup',
|
||||
model=UserGroup,
|
||||
|
||||
Reference in New Issue
Block a user