HH/apps/complaints/migrations/0005_add_sent_to_department_fields.py
ismail 7369d08012
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
feat: unified reference numbers + feedback modules QA audit
Reference numbers (unified scheme PREFIX-YYYYMM-HOSP-NNNN, e.g. CMP-202606-HHN-0001):
- new ReferenceSequence model + generate_reference() helper (apps/core)
- Complaint/Inquiry/Observation/Appreciation/Suggestion emit unified refs via save()
- prefix-based auto-routing in public track API (CMP/INQ/OBS trackable; APR/SGT internal-only)
- removed legacy CMP-/INQ- generators in ui_views, integrations, px_sources
- migrations: core.0003_referencesequence, appreciation.0006, feedback.0008, observations.0012
- unit tests (format, sanitization, monthly reset, 40-thread concurrency)

QA audit:
- isolated E2E hospital sandbox mirroring HH-N + 10 role users (create_e2e_isolated_env)
- feedback-modules-audit.spec.ts + audit helper (headed, run-to-completion)
- reports/feedback-modules-qa-report.md

Also bundles accumulated in-progress work across complaints, observations,
organizations, templates, and other modules.
2026-06-14 14:29:23 +03:00

44 lines
1.7 KiB
Python

# Generated by Django 6.0.1 on 2026-05-16 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('complaints', '0004_add_cancelled_partially_resolved_timestamps'),
]
operations = [
migrations.AddField(
model_name='complaint',
name='sent_to_department',
field=models.BooleanField(default=False, help_text='Whether this complaint has been sent to the primary department for visibility'),
),
migrations.AddField(
model_name='complaint',
name='sent_to_department_at',
field=models.DateTimeField(blank=True, help_text='When the complaint was sent to the primary department', null=True),
),
migrations.AddField(
model_name='complaintinvolveddepartment',
name='sent',
field=models.BooleanField(default=False, help_text='Whether this department has been sent the complaint'),
),
migrations.AddField(
model_name='complaintinvolveddepartment',
name='sent_at',
field=models.DateTimeField(blank=True, help_text='When the complaint was sent to this department', null=True),
),
migrations.AddField(
model_name='inquiry',
name='sent_to_department',
field=models.BooleanField(default=False, help_text='Whether this inquiry has been sent to the primary department for visibility'),
),
migrations.AddField(
model_name='inquiry',
name='sent_to_department_at',
field=models.DateTimeField(blank=True, help_text='When the inquiry was sent to the primary department', null=True),
),
]