[FIX] EMPLOYEE: Fix character length for location in employee work information

This commit is contained in:
Horilla
2025-12-20 11:56:39 +05:30
parent f3a2db65fc
commit ee4c3eb35f
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
# Generated by Django 6.0 on 2025-12-20 06:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('employee', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='employeeworkinformation',
name='location',
field=models.CharField(blank=True, max_length=254, null=True, verbose_name='Work Location'),
),
migrations.AlterField(
model_name='historicalemployeeworkinformation',
name='location',
field=models.CharField(blank=True, max_length=254, null=True, verbose_name='Work Location'),
),
]

View File

@@ -804,7 +804,7 @@ class EmployeeWorkInformation(models.Model):
EmployeeTag, blank=True, verbose_name=_("Employee tag")
)
location = models.CharField(
max_length=50, null=True, blank=True, verbose_name=_("Work Location")
max_length=254, null=True, blank=True, verbose_name=_("Work Location")
)
company_id = models.ForeignKey(
Company,