This commit is contained in:
anhduy-tech
2026-01-20 08:41:46 +07:00
parent 06550d9297
commit c6f6cc1aa1
10 changed files with 26 additions and 3 deletions

Binary file not shown.

View File

@@ -82,7 +82,7 @@ ASGI_APPLICATION = 'api.asgi.application'
#prod:5.223.52.193 dev:5.223.42.146
MODE = 'prod'
DBHOST = '172.17.0.1' if MODE == 'prod' else '5.223.42.146'
DBHOST = '172.17.0.1' if MODE == 'prod' else '5.223.52.193'
DATABASES = {
'default': {

View File

@@ -0,0 +1,23 @@
# Generated by Django 5.1.7 on 2026-01-19 07:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0358_people_issued_place'),
]
operations = [
migrations.AlterField(
model_name='organization',
name='established_date',
field=models.DateField(null=True),
),
migrations.AlterField(
model_name='organization',
name='shortname',
field=models.CharField(max_length=50, null=True),
),
]

View File

@@ -1349,8 +1349,8 @@ class Individual(models.Model):
class Organization(models.Model):
customer = models.ForeignKey(Customer, null=False, related_name='orgncust', on_delete=models.PROTECT)
shortname = models.CharField(max_length=50, null=False)
established_date = models.DateField()
shortname = models.CharField(max_length=50, null=True)
established_date = models.DateField(null=True)
website = models.CharField(max_length=200, null=True)
bank_account = models.CharField(max_length=50, null=True)
bank_name = models.CharField(max_length=100, null=True)