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 07:53:25 (GMT)
commitfe8a2ca463fa277d1fcca360ef0704623ec62a03 (patch)
treea436e32b18a81b5520ef77c816370c94e9e8f113
parent43f25b588f468bf38d1d28c2710985b73d281664 (diff)
downloadcombo-wip/33221-i18n-regie.zip
combo-wip/33221-i18n-regie.tar.gz
combo-wip/33221-i18n-regie.tar.bz2
lingo: i18n on Regie.payment_backend (#33221)wip/33221-i18n-regie
-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):