[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 01/02: associate a 'cancelled' flag with trans
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 01/02: associate a 'cancelled' flag with transactions |
Date: |
Thu, 07 Dec 2017 17:35:41 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit 45f614c41c57c9186977cf8c06d41e043302f133
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Dec 7 17:11:48 2017 +0100
associate a 'cancelled' flag with transactions
---
.../app/migrations/0010_banktransaction_cancelled.py | 20 ++++++++++++++++++++
talerbank/app/models.py | 4 ++--
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/talerbank/app/migrations/0010_banktransaction_cancelled.py
b/talerbank/app/migrations/0010_banktransaction_cancelled.py
new file mode 100644
index 0000000..ee46222
--- /dev/null
+++ b/talerbank/app/migrations/0010_banktransaction_cancelled.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.3 on 2017-12-07 16:11
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('app', '0009_auto_20171120_1642'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='banktransaction',
+ name='cancelled',
+ field=models.BooleanField(default=False),
+ ),
+ ]
diff --git a/talerbank/app/models.py b/talerbank/app/models.py
index b0d0ca4..f8c5c47 100644
--- a/talerbank/app/models.py
+++ b/talerbank/app/models.py
@@ -78,5 +78,5 @@ class BankTransaction(models.Model):
db_index=True,
related_name="credit_account")
subject = models.CharField(default="(no subject given)", max_length=200)
- date = models.DateTimeField(auto_now=True,
- db_index=True)
+ date = models.DateTimeField(auto_now=True, db_index=True)
+ cancelled = models.BooleanField(default=False)
--
To stop receiving notification emails like this one, please contact
address@hidden