create bank account for organization
This commit is contained in:
@@ -161,8 +161,20 @@ class BankAccountInformation(BaseModel):
|
||||
user = models.ForeignKey(
|
||||
User,
|
||||
on_delete=models.CASCADE,
|
||||
related_name="bank_information"
|
||||
related_name="bank_information",
|
||||
null=True
|
||||
)
|
||||
organization = models.ForeignKey(
|
||||
Organization,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='bank_information',
|
||||
null=True
|
||||
)
|
||||
type_choices = (
|
||||
('ORG', 'organization'),
|
||||
('USR', 'user'),
|
||||
)
|
||||
account_type = models.CharField(max_length=10, default='USR')
|
||||
name = models.CharField(max_length=150)
|
||||
card = models.CharField(max_length=25, unique=True)
|
||||
account = models.CharField(max_length=25, unique=True)
|
||||
|
||||
Reference in New Issue
Block a user