minor: Move code blocks to be alphabetical.

This commit is contained in:
Steve Howell
2021-12-08 18:39:16 +00:00
committed by Tim Abbott
parent aae9f1b6f5
commit 02207f47d5

View File

@@ -851,20 +851,6 @@ def add_user_profile_child_configs(user_profile_config: Config) -> None:
As of now, we do NOT include bot tables like Service.
"""
Config(
table="zerver_useractivity",
model=UserActivity,
normal_parent=user_profile_config,
parent_key="user_profile__in",
)
Config(
table="zerver_useractivityinterval",
model=UserActivityInterval,
normal_parent=user_profile_config,
parent_key="user_profile__in",
)
Config(
table="zerver_alertword",
model=AlertWord,
@@ -893,6 +879,20 @@ def add_user_profile_child_configs(user_profile_config: Config) -> None:
parent_key="modified_user__in",
)
Config(
table="zerver_useractivity",
model=UserActivity,
normal_parent=user_profile_config,
parent_key="user_profile_id__in",
)
Config(
table="zerver_useractivityinterval",
model=UserActivityInterval,
normal_parent=user_profile_config,
parent_key="user_profile_id__in",
)
Config(
table="zerver_userhotspot",
model=UserHotspot,