0001-lingo-add-Transaction.bank_transaction_date-41323.patch
combo/apps/lingo/migrations/0039_transaction_transaction_date.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
# Generated by Django 1.11.29 on 2020-04-03 20:19 |
|
3 |
from __future__ import unicode_literals |
|
4 | ||
5 |
from django.db import migrations, models |
|
6 | ||
7 | ||
8 |
class Migration(migrations.Migration): |
|
9 | ||
10 |
dependencies = [ |
|
11 |
('lingo', '0038_hide_cell_if_empty'), |
|
12 |
] |
|
13 | ||
14 |
operations = [ |
|
15 |
migrations.AddField( |
|
16 |
model_name='transaction', |
|
17 |
name='bank_transaction_date', |
|
18 |
field=models.DateTimeField(blank=True, null=True), |
|
19 |
), |
|
20 |
] |
combo/apps/lingo/models.py | ||
---|---|---|
454 | 454 |
bank_data = JSONField(blank=True) |
455 | 455 |
order_id = models.CharField(max_length=200) |
456 | 456 |
bank_transaction_id = models.CharField(max_length=200, null=True) |
457 |
bank_transaction_date = models.DateTimeField(blank=True, null=True) |
|
457 | 458 |
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True) |
458 | 459 |
status = models.IntegerField(null=True) |
459 | 460 |
amount = models.DecimalField(default=0, max_digits=7, decimal_places=2) |
460 |
- |