tornado: Extract functions called from django into one module.

This makes clearer the separation of concerns.
This commit is contained in:
Alex Vandiver
2020-08-10 09:40:38 -07:00
committed by Tim Abbott
parent 33e19fa7d1
commit 39368cad3a
8 changed files with 106 additions and 103 deletions

View File

@@ -22,7 +22,7 @@ from zerver.models import (
get_stream_by_id_in_realm,
is_cross_realm_bot_email,
)
from zerver.tornado.event_queue import send_event
from zerver.tornado.django_api import send_event
def get_default_value_for_history_public_to_subscribers(