HH/apps/complaints/migrations/0035_involved_department_routing_rejection.py
2026-07-05 14:49:45 +03:00

58 lines
2.2 KiB
Python

from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("complaints", "0034_remove_inquiry_observation_satisfaction"),
("organizations", "0014_remove_department_manager_1st"),
]
operations = [
migrations.AddField(
model_name="complaintinvolveddepartment",
name="routing_status",
field=models.CharField(
choices=[("sent", "Sent"), ("accepted", "Accepted"), ("rejected", "Rejected")],
default="sent",
help_text="Whether the department has accepted or rejected the routing of this complaint",
max_length=20,
),
),
migrations.AddField(
model_name="complaintinvolveddepartment",
name="rejected_at",
field=models.DateTimeField(blank=True, help_text="When the champion rejected the routing", null=True),
),
migrations.AddField(
model_name="complaintinvolveddepartment",
name="rejected_by_staff",
field=models.ForeignKey(
blank=True,
help_text="Staff member (champion/manager) who rejected the routing",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="rejected_dept_involvements",
to="organizations.staff",
),
),
migrations.AddField(
model_name="complaintinvolveddepartment",
name="rejection_reason",
field=models.TextField(blank=True, help_text="Reason the department rejected the routing"),
),
migrations.AddField(
model_name="complaintinvolveddepartment",
name="suggested_department",
field=models.ForeignKey(
blank=True,
help_text="Department the champion suggested as the correct one",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="suggested_for_involvements",
to="organizations.department",
),
),
]