summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2020-09-03 13:04:23 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2020-09-03 14:08:11 (GMT)
commit1ee8871edacc119e8a2462571ed2b59c375523e5 (patch)
treee11d7d8de64a01f9ca977e3ad22b758c7dd912eb
parentde91a4302d50245acbf0ca374bc84f066480388f (diff)
downloadeopayment-1ee8871edacc119e8a2462571ed2b59c375523e5.zip
eopayment-1ee8871edacc119e8a2462571ed2b59c375523e5.tar.gz
eopayment-1ee8871edacc119e8a2462571ed2b59c375523e5.tar.bz2
paybox: list platforms choices (#46323)v1.52
-rw-r--r--eopayment/paybox.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/eopayment/paybox.py b/eopayment/paybox.py
index a00dd59..0962f23 100644
--- a/eopayment/paybox.py
+++ b/eopayment/paybox.py
@@ -200,8 +200,11 @@ class Payment(PaymentCommon):
'name': 'platform',
'caption': _('Plateforme cible'),
'default': 'test',
- 'validation': lambda x: isinstance(x, six.string_types)
- and x.lower() in ('test', 'prod'),
+ 'choices': (
+ ('test', 'Test'),
+ ('backup', 'Backup'),
+ ('prod', 'Production'),
+ )
},
{
'name': 'site',