import --> unique_unit_identity
This commit is contained in:
@@ -258,6 +258,7 @@ class OrganizationSerializer(serializers.ModelSerializer):
|
|||||||
'address',
|
'address',
|
||||||
'parent_organization',
|
'parent_organization',
|
||||||
'national_unique_id',
|
'national_unique_id',
|
||||||
|
'unique_unit_identity',
|
||||||
'company_code',
|
'company_code',
|
||||||
'field_of_activity',
|
'field_of_activity',
|
||||||
'free_visibility_by_scope',
|
'free_visibility_by_scope',
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Generated by Django 5.0 on 2026-02-09 06:41
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
('authentication', '0060_organization_ownership_code'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='organization',
|
||||||
|
name='unique_unit_identity',
|
||||||
|
field=models.CharField(default='0', max_length=150),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Generated by Django 5.0 on 2026-02-09 06:57
|
||||||
|
|
||||||
|
import django.db.models.deletion
|
||||||
|
from django.conf import settings
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('authentication', '0061_organization_unique_unit_identity_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='OrganizationLocationInfo',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('create_date', models.DateTimeField(auto_now_add=True)),
|
||||||
|
('modify_date', models.DateTimeField(auto_now=True)),
|
||||||
|
('creator_info', models.CharField(max_length=100, null=True)),
|
||||||
|
('modifier_info', models.CharField(max_length=100, null=True)),
|
||||||
|
('trash', models.BooleanField(default=False)),
|
||||||
|
('postal_code', models.CharField(blank=True, max_length=150, null=True)),
|
||||||
|
('address', models.TextField(blank=True, max_length=2000, null=True)),
|
||||||
|
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_createddby', to=settings.AUTH_USER_MODEL)),
|
||||||
|
('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_modifiedby', to=settings.AUTH_USER_MODEL)),
|
||||||
|
('org', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='locations', to='authentication.organization')),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -116,6 +116,7 @@ class Organization(BaseModel):
|
|||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
national_unique_id = models.CharField(max_length=30, default="0")
|
national_unique_id = models.CharField(max_length=30, default="0")
|
||||||
|
unique_unit_identity = models.CharField(max_length=150, default="0")
|
||||||
activity_fields = (
|
activity_fields = (
|
||||||
('CO', 'Country'),
|
('CO', 'Country'),
|
||||||
('PR', 'Province'),
|
('PR', 'Province'),
|
||||||
|
|||||||
Reference in New Issue
Block a user