Procházet zdrojové kódy

Updated company bank account model fields with more details

master
kj1352 před 3 roky
rodič
revize
c643dd8ef1
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +4
    -0
      expense/models.py

+ 4
- 0
expense/models.py Zobrazit soubor

@@ -1,10 +1,14 @@
from django.db import models
from employee.models import Employee
from client.models import Address


class CompanyBankAccount(models.Model):
name = models.CharField(max_length=50)
logo = models.ImageField(upload_to='banks', null=True, blank=True)
account_number = models.CharField(max_length=30)
ifsc_code = models.CharField(max_length=30)
address = models.ForeignKey(Address, on_delete=models.CASCADE)

def __str__(self):
return self.name