gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: fix form's processing


From: gnunet
Subject: [taler-bank] branch master updated: fix form's processing
Date: Thu, 15 Oct 2020 23:12:07 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new adbe7cb  fix form's processing
adbe7cb is described below

commit adbe7cbecc1c91398622dbf3f0c12f910f7c0d4d
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 15 23:12:03 2020 +0200

    fix form's processing
---
 talerbank/app/views.py | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 1e435ca..1855609 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -295,9 +295,7 @@ class InputDatalist(forms.TextInput):
         return html + datalist
 
 class PaytoTransferForm(forms.Form):
-    amount = forms.FloatField(min_value=0.1, widget=forms.NumberInput())
     address = forms.CharField()
-    subject = forms.CharField()
 
 ##
 # This method serves the profile page, which is the main
@@ -348,17 +346,12 @@ def payto_transfer(request):
         )
         return redirect("profile")
 
-    amount_parts = (
-        settings.TALER_CURRENCY,
-        data.cleaned_data.get("amount") + 0.0
-    )
     parsed_address = PaytoParse(data.cleaned_data.get("address"))
-
     wire_transfer(
-        Amount.parse("%s:%s" % amount_parts),
+        parsed_address.amount,
         BankAccount.objects.get(user=request.user),
         BankAccount.objects.get(account_no=parsed_address.account),
-        data.cleaned_data.get("subject")
+        parsed_address.subject
     )
     set_session_hint(
         request,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]