views: Fix imports of REQ/has_request_variables from the wrong place.

These were never in zerver/decorator.py, and so it makes sense to
import them zerver/lib/request.py, mostly for ease of finding things.
This commit is contained in:
Tim Abbott
2017-10-27 15:07:31 -07:00
parent 25251e0216
commit 1cd017288d
14 changed files with 27 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
from django.http import HttpRequest, HttpResponse
from zerver.decorator import has_request_variables, REQ
from zerver.lib.request import has_request_variables, REQ
from zerver.lib.response import json_success
from zerver.lib.validator import check_string
from zerver.models import UserProfile