bank account existance exception

This commit is contained in:
2025-11-05 12:47:13 +03:30
parent 1942042a2b
commit 57b8d10714
3 changed files with 18 additions and 4 deletions

View File

@@ -195,9 +195,9 @@ class BankAccountInformation(BaseModel):
)
account_type = models.CharField(max_length=10, default='USR')
name = models.CharField(max_length=150, null=True)
card = models.CharField(max_length=25, null=True, unique=True)
account = models.CharField(max_length=25, null=True, unique=True)
sheba = models.CharField(max_length=30, null=True, unique=True)
card = models.CharField(max_length=25, null=True)
account = models.CharField(max_length=25, null=True)
sheba = models.CharField(max_length=30, null=True)
def __str__(self):
return f'{self.name}-{self.card}'