zulip/zerver/actions
Tim Abbott c6fe799369 i18n: Fix default language for users created via API/LDAP.
This fixes a regression introduced in
9954db4b59, where the realm's default
language would be ignored for users created via API/LDAP/SAML,
resulting in all such users having English as their default language.

The API/LDAP/SAML account creation code paths don't have a request,
and thus cannot pull default language from the user's browser.

We have the `realm.default_language` field intended for this use case,
but it was not being passed through the system.

Rather than pass `realm.default_language` through from each caller, we
make the low-level user creation code set this field, as that seems
more robust to the creation of future callers.
2023-10-01 21:10:13 +02:00
..
__init__.py
alert_words.py actions: Split out zerver.actions.alert_words. 2022-04-14 17:14:31 -07:00
bots.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
create_realm.py invite: Add new setting for "Who can create multiuse invite links". 2023-09-07 14:21:01 -07:00
create_user.py i18n: Fix default language for users created via API/LDAP. 2023-10-01 21:10:13 +02:00
custom_profile_fields.py ruff: Fix PLR1714 Consider merging multiple comparisons. 2023-07-23 15:21:33 -07:00
default_streams.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
hotspots.py actions: Split out zerver.actions.hotspots. 2022-04-14 17:14:31 -07:00
invites.py python: Elide unnecessary list wrappers. 2023-09-13 12:41:23 -07:00
message_delete.py models: Always search Messages with a realm_id or id limit. 2023-09-11 15:00:37 -07:00
message_edit.py python: Delete superfluous parens. 2023-09-13 13:40:19 -07:00
message_flags.py python: Elide unnecessary list wrappers. 2023-09-13 12:41:23 -07:00
message_send.py build_message_send_dict: Remove redundant realm arg. 2023-09-20 09:55:25 -07:00
muted_users.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
presence.py presence: Support null values in UserPresence. 2023-04-26 14:26:47 -07:00
reactions.py message: Access realm object directly from message. 2023-08-23 11:38:32 -07:00
realm_domains.py django: Use .exists() instead of .count() when possible. 2023-09-11 15:00:37 -07:00
realm_emoji.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_export.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_icon.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_linkifiers.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_logo.py django_api: Extract send_event_on_commit helper. 2023-06-19 13:42:40 -07:00
realm_playgrounds.py migration: Rename extra_data_json to extra_data in audit log models. 2023-08-16 17:18:14 -07:00
realm_settings.py python: Elide unnecessary list wrappers. 2023-09-13 12:41:23 -07:00
scheduled_messages.py scheduled-messages: Split out edit scheduled message endpoint. 2023-05-26 18:05:55 -07:00
streams.py management: Rename command reactivate_stream -> unarchive_stream. 2023-09-19 15:03:33 -07:00
submessage.py django_api: Extract send_event_on_commit helper. 2023-06-19 13:42:40 -07:00
typing.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
uploads.py uploads: Rewrite comment in do_claim_attachments to improve clarity. 2023-08-15 10:08:11 -07:00
user_activity.py Remove statsd support. 2023-04-25 19:58:16 -07:00
user_groups.py user_groups: Improve bulk membership change logic. 2023-09-29 15:08:02 +02:00
user_settings.py emails: Update subject for confirm_new_email to have realm host. 2023-09-17 15:12:21 -07:00
user_status.py user-status: Stop updating the UserStatus model for `away` updates. 2022-09-23 12:27:54 -07:00
user_topics.py user_topics: Update 'set visibility policy' codepath for bulk db operations. 2023-03-29 09:50:06 -07:00
users.py scim: Add supporting for syncing the user role. 2023-09-15 13:15:45 -07:00
video_calls.py