summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2019-05-17 16:10:43 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2019-05-20 09:13:17 (GMT)
commitd956627fb03782045d5f4c018e33eddacc278988 (patch)
tree7aa372b30bd3ab03f00f73bf2ce86df475de459c
parentd4f858b83078c90a6f9cda4b3bc36203affd8bb1 (diff)
downloadcombo-d956627fb03782045d5f4c018e33eddacc278988.zip
combo-d956627fb03782045d5f4c018e33eddacc278988.tar.gz
combo-d956627fb03782045d5f4c018e33eddacc278988.tar.bz2
lingo: i18n on Regie.payment_backend (#33221)
-rw-r--r--combo/apps/lingo/migrations/0036_auto_20190426_1202.py4
-rw-r--r--combo/apps/lingo/models.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/combo/apps/lingo/migrations/0036_auto_20190426_1202.py b/combo/apps/lingo/migrations/0036_auto_20190426_1202.py
index 2fdea31..3df5cae 100644
--- a/combo/apps/lingo/migrations/0036_auto_20190426_1202.py
+++ b/combo/apps/lingo/migrations/0036_auto_20190426_1202.py
@@ -24,6 +24,8 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='regie',
name='payment_backend',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lingo.PaymentBackend'),
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, to='lingo.PaymentBackend',
+ verbose_name='Payment backend'),
),
]
diff --git a/combo/apps/lingo/models.py b/combo/apps/lingo/models.py
index f4be4fc..b491d4a 100644
--- a/combo/apps/lingo/models.py
+++ b/combo/apps/lingo/models.py
@@ -119,7 +119,8 @@ class Regie(models.Model):
text_on_success = models.TextField(
verbose_name=_('Custom text displayed on success'),
blank=True, null=True)
- payment_backend = models.ForeignKey(PaymentBackend, on_delete=models.CASCADE)
+ payment_backend = models.ForeignKey(
+ PaymentBackend, on_delete=models.CASCADE, verbose_name=_('Payment backend'))
transaction_options = JSONField(blank=True, verbose_name=_('Transaction Options'))
def is_remote(self):