From ea0a9636b9be4746ec141141a25d409c09d3d122 Mon Sep 17 00:00:00 2001 From: DJ Gillespie Date: Mon, 6 Apr 2020 19:06:35 -0600 Subject: [PATCH] fixed bank id issue --- qrtr_account/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrtr_account/models.py b/qrtr_account/models.py index 8f599ac..ad7f5bb 100644 --- a/qrtr_account/models.py +++ b/qrtr_account/models.py @@ -39,7 +39,7 @@ class Bank(models.Model): on_delete=models.CASCADE) institution = models.ForeignKey(Institution, on_delete=models.CASCADE, related_name="banks") - acc_id = models.CharField(max_length=250) + id = models.CharField(max_length=250, primary_key=True) nickname = models.CharField(max_length=250) official_name = models.CharField(max_length=250,blank=True, null=True) balance_limit = models.DecimalField(decimal_places=3, max_digits=100, blank=True, null=True)