0001-lingo-i18n-on-Regie.payment_backend-33221.patch
combo/apps/lingo/migrations/0038_auto_20190517_1807.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
# Generated by Django 1.11.18 on 2019-05-17 16:07 |
|
3 |
from __future__ import unicode_literals |
|
4 | ||
5 |
from django.db import migrations, models |
|
6 |
import django.db.models.deletion |
|
7 | ||
8 | ||
9 |
class Migration(migrations.Migration): |
|
10 | ||
11 |
dependencies = [ |
|
12 |
('lingo', '0037_regie_transaction_options'), |
|
13 |
] |
|
14 | ||
15 |
operations = [ |
|
16 |
migrations.AlterField( |
|
17 |
model_name='regie', |
|
18 |
name='payment_backend', |
|
19 |
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lingo.PaymentBackend', verbose_name='Payment backend'), |
|
20 |
), |
|
21 |
] |
combo/apps/lingo/models.py | ||
---|---|---|
119 | 119 |
text_on_success = models.TextField( |
120 | 120 |
verbose_name=_('Custom text displayed on success'), |
121 | 121 |
blank=True, null=True) |
122 |
payment_backend = models.ForeignKey(PaymentBackend, on_delete=models.CASCADE) |
|
122 |
payment_backend = models.ForeignKey( |
|
123 |
PaymentBackend, on_delete=models.CASCADE, verbose_name=_('Payment backend')) |
|
123 | 124 |
transaction_options = JSONField(blank=True, verbose_name=_('Transaction Options')) |
124 | 125 | |
125 | 126 |
def is_remote(self): |
126 |
- |