From 27f458a7b3c1dbbe8dc21658e5283288245b3e43 Mon Sep 17 00:00:00 2001 From: Jake Urban Date: Mon, 2 Dec 2019 16:31:01 -0800 Subject: [PATCH] Added response for when withdrawal form is not valid --- docs/source/conf.py | 4 ++-- polaris/polaris/withdraw/views.py | 3 +++ setup.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index e43f583d..211693db 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -29,10 +29,10 @@ author = 'Jake Urban' # The short X.Y version -version = 'v0.9.5' +version = 'v0.9.6' # The full version, including alpha/beta/rc tags -release = 'v0.9.5' +release = 'v0.9.6' # -- General configuration --------------------------------------------------- diff --git a/polaris/polaris/withdraw/views.py b/polaris/polaris/withdraw/views.py index 5d6338c7..7d8e60eb 100644 --- a/polaris/polaris/withdraw/views.py +++ b/polaris/polaris/withdraw/views.py @@ -123,6 +123,9 @@ def interactive_withdraw(request: Request) -> Response: }, template_name="transaction/more_info.html" ) + else: + resp_data = {"form": form, "account": request.POST.get("account")} + return Response(resp_data, template_name="withdraw/form.html") @api_view(["POST"]) diff --git a/setup.py b/setup.py index 28456025..12b502b0 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="django-polaris", - version="0.9.5", + version="0.9.6", description="A SEP-24-compliant Django anchor server", long_description=long_description, long_description_content_type="text/markdown",