zulip/zilencer/management/commands
Sahil Batra 62f01edee3 populate_db: Pass realm as arg to select_related calls.
This commit updates the select_related calls in queries to
get UserProfile objects in populate_db code to pass "realm"
as argument to select_related call.

Also, note that "realm" is the only non-null foreign key field
in UserProfile object, so select_related() was only fetching
realm object previously as well. But we should still pass "realm"
as argument in select_related call so that we can make sure that
only required fields are selected in case we add more foreign
keys to UserProfile in future.
2023-07-20 10:44:39 -07:00
..
__init__.py
add_mock_conversation.py emojis: Use get_emoji_data. 2023-07-17 09:35:53 -07:00
calculate_first_visible_message_id.py management: Fix typing for management scripts. 2021-08-20 05:54:18 -07:00
compare_messages.py render_messages: Use JSON Lines format. 2021-05-20 13:12:16 -07:00
downgrade_small_realms_behind_on_payments.py billing: Downgrade small realms that are behind on payments. 2021-07-02 13:19:12 -07:00
invoice_plans.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
mark_all_messages_unread.py python: Clean up getattr, setattr, delattr calls with literal names. 2022-10-10 08:40:28 -07:00
populate_db.py populate_db: Pass realm as arg to select_related calls. 2023-07-20 10:44:39 -07:00
print_initial_password.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
profile_request.py profile_request: Support only synchronous responses for now. 2023-07-19 16:14:59 -07:00
queue_rate.py workers: Pass down if they are running multi-threaded. 2023-05-16 14:05:01 -07:00
render_messages.py render_messages: Tighten function signatures with generic QuerySet. 2022-07-07 11:27:43 -07:00
rundjangoserver.py ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
switch_realm_from_standard_to_plus_plan.py billing: Add command for switching plans from Standard to Plus. 2021-10-15 17:27:50 -07:00
sync_api_key.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00