diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-11-04 18:15:08 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-11-04 18:15:08 +0100 |
commit | 1af891c9e32bfabe7b9800d1643d6e292858018b (patch) | |
tree | 22569dc595e2d6a274054ef30077fde0e1899757 /talerbank | |
parent | baa520a09ecd9a07079bd0666e8a533d7b2e2aad (diff) | |
download | bank-1af891c9e32bfabe7b9800d1643d6e292858018b.tar.gz bank-1af891c9e32bfabe7b9800d1643d6e292858018b.tar.bz2 bank-1af891c9e32bfabe7b9800d1643d6e292858018b.zip |
add indices where they belong (#5153)
Diffstat (limited to 'talerbank')
-rw-r--r-- | talerbank/app/models.py | 5 | ||||
m--------- | talerbank/app/static/web-common | 0 |
2 files changed, 4 insertions, 1 deletions
diff --git a/talerbank/app/models.py b/talerbank/app/models.py index 064dbed..d254cc4 100644 --- a/talerbank/app/models.py +++ b/talerbank/app/models.py @@ -71,9 +71,12 @@ class BankTransaction(models.Model): amount = AmountField(default=False) debit_account = models.ForeignKey(BankAccount, on_delete=models.CASCADE, + db_index=True, related_name="debit_account") credit_account = models.ForeignKey(BankAccount, on_delete=models.CASCADE, + db_index=True, related_name="credit_account") subject = models.CharField(default="(no subject given)", max_length=200) - date = models.DateTimeField(auto_now=True) + date = models.DateTimeField(auto_now=True, + db_index=True) diff --git a/talerbank/app/static/web-common b/talerbank/app/static/web-common -Subproject 489a9e38e6960fdce309ab8cf5ff66d930ecb3b +Subproject d7e013594d15388b1a7342a44a0e9c8d4ecca82 |