validation for pos device - some changes in pos device models
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.0 on 2025-08-12 08:48
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0032_organization_has_pos'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='organization',
|
||||
name='en_name',
|
||||
field=models.CharField(max_length=150, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='organization',
|
||||
name='name',
|
||||
field=models.CharField(max_length=250, null=True),
|
||||
),
|
||||
]
|
||||
@@ -92,7 +92,8 @@ class OrganizationType(BaseModel):
|
||||
|
||||
|
||||
class Organization(BaseModel):
|
||||
name = models.CharField(max_length=50)
|
||||
name = models.CharField(max_length=250, null=True)
|
||||
en_name = models.CharField(max_length=150, null=True)
|
||||
type = models.ForeignKey(
|
||||
'OrganizationType',
|
||||
on_delete=models.CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user