From 3c85d92c921b77b68c76cfc6e6439d274cc3a247 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Tue, 4 Nov 2025 11:01:24 +0330 Subject: [PATCH] add - blank=True to org address --- .../0046_alter_organization_address.py | 18 ++++++++++++++++++ apps/authentication/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/authentication/migrations/0046_alter_organization_address.py diff --git a/apps/authentication/migrations/0046_alter_organization_address.py b/apps/authentication/migrations/0046_alter_organization_address.py new file mode 100644 index 0000000..368e072 --- /dev/null +++ b/apps/authentication/migrations/0046_alter_organization_address.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0 on 2025-11-04 07:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('authentication', '0045_organization_address'), + ] + + operations = [ + migrations.AlterField( + model_name='organization', + name='address', + field=models.TextField(blank=True, max_length=1000, null=True), + ), + ] diff --git a/apps/authentication/models.py b/apps/authentication/models.py index acd75c3..d94aed7 100644 --- a/apps/authentication/models.py +++ b/apps/authentication/models.py @@ -136,7 +136,7 @@ class Organization(BaseModel): related_name='parents', null=True ) - address = models.TextField(max_length=1000, null=True) + address = models.TextField(max_length=1000, null=True, blank=True) separate_warehouse = models.BooleanField(default=False) has_pos = models.BooleanField(default=False) additional_data = models.JSONField(default=dict)