diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-02-10 11:58:46 +0000 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-02-10 11:58:46 +0000 |
commit | 989dc5bd36959c785ffabab02eade3a0719e6093 (patch) | |
tree | 64146f30c76781d12424555f01faeb670e60a226 /ogcp/views.py | |
parent | 3eda3fa68487a81e67f844e01ad7a6edf646d627 (diff) |
Add image create template
Image creation action was lacking a template to render the form. This
patch adds said template.
Also redirects to /scopes when the request was processed by the ogserver
successfully.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index e2ecaf4..14db2dd 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -443,7 +443,7 @@ def action_image_create(): "center_id": r.json()["center"]} r = g.server.post('/image/create', payload) if r.status_code == requests.codes.ok: - return make_response("200 OK", 200) + return redirect(url_for("scopes")) return make_response("400 Bad Request", 400) else: ips = parse_ips(request.args.to_dict()) |