webhooks: Import REQ, has_request_variables from zerver.lib.request.

We now import REQ and has_request_variables from zerver.lib.request,
which is where these methods are defined.

Fixes #7195.
This commit is contained in:
Eeshan Garg
2017-10-31 00:55:48 -02:30
committed by Tim Abbott
parent 20f3e9b779
commit aaaed74c3d
49 changed files with 122 additions and 72 deletions

View File

@@ -1,8 +1,9 @@
# Webhooks for external integrations.
from zerver.models import get_client, UserProfile
from zerver.decorator import authenticated_rest_api_view
from zerver.lib.actions import check_send_stream_message
from zerver.lib.response import json_success
from zerver.decorator import authenticated_rest_api_view, REQ, has_request_variables
from zerver.lib.request import REQ, has_request_variables
from zerver.models import get_client, UserProfile
from django.http import HttpRequest, HttpResponse
from typing import Text