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 | ||
---|---|---|
465 | 465 |
bank_data = JSONField(blank=True) |
466 | 466 |
order_id = models.CharField(max_length=200) |
467 | 467 |
bank_transaction_id = models.CharField(max_length=200, null=True) |
468 |
bank_transaction_date = models.DateTimeField(blank=True, null=True) |
|
468 | 469 |
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True) |
469 | 470 |
status = models.IntegerField(null=True) |
470 | 471 |
amount = models.DecimalField(default=0, max_digits=7, decimal_places=2) |
471 |
- |