mirror of https://github.com/zulip/zulip.git
62f01edee3
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. |
||
---|---|---|
.. | ||
__init__.py | ||
add_mock_conversation.py | ||
calculate_first_visible_message_id.py | ||
compare_messages.py | ||
downgrade_small_realms_behind_on_payments.py | ||
invoice_plans.py | ||
mark_all_messages_unread.py | ||
populate_db.py | ||
print_initial_password.py | ||
profile_request.py | ||
queue_rate.py | ||
render_messages.py | ||
rundjangoserver.py | ||
switch_realm_from_standard_to_plus_plan.py | ||
sync_api_key.py |