Bank transfer: Allow using external IDs for deduplication (#3803)

* Bank transfer: Allow using external IDs for deduplication

* Do not use empty string in nullable field
This commit is contained in:
Raphael Michel
2024-01-09 14:01:01 +01:00
committed by GitHub
parent 7a2878657d
commit 2c67b82f4a
7 changed files with 95 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ class BankTransaction(models.Model):
currency = models.CharField(max_length=10, null=True)
state = models.CharField(max_length=32, choices=STATES, default=STATE_UNCHECKED)
message = models.TextField()
external_id = models.CharField(max_length=190, db_index=True, null=True, blank=True)
checksum = models.CharField(max_length=190, db_index=True)
payer = models.TextField(blank=True)
reference = models.TextField(blank=True)