update on the complaint and fix merge conflict
This commit is contained in:
parent
e3b3490bc9
commit
6f2c783577
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.utils.timezone
|
import django.utils.timezone
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|||||||
14
apps/accounts/migrations/0005_merge_20260115_1447.py
Normal file
14
apps/accounts/migrations/0005_merge_20260115_1447.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Generated by Django 6.0.1 on 2026-01-15 11:47
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('accounts', '0003_user_explanation_notification_channel_and_more'),
|
||||||
|
('accounts', '0004_username_default'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
]
|
||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -39,11 +39,11 @@ class ComplaintAdmin(admin.ModelAdmin):
|
|||||||
list_display = [
|
list_display = [
|
||||||
'title_preview', 'patient', 'hospital', 'category',
|
'title_preview', 'patient', 'hospital', 'category',
|
||||||
'severity_badge', 'status_badge', 'sla_indicator',
|
'severity_badge', 'status_badge', 'sla_indicator',
|
||||||
'created_by', 'assigned_to', 'created_at'
|
'assigned_to', 'created_at'
|
||||||
]
|
]
|
||||||
list_filter = [
|
list_filter = [
|
||||||
'status', 'severity', 'priority', 'category', 'source',
|
'status', 'severity', 'priority', 'category', 'source',
|
||||||
'is_overdue', 'hospital', 'created_by', 'created_at'
|
'is_overdue', 'hospital', 'created_at'
|
||||||
]
|
]
|
||||||
search_fields = [
|
search_fields = [
|
||||||
'title', 'description', 'patient__mrn',
|
'title', 'description', 'patient__mrn',
|
||||||
@ -66,9 +66,6 @@ class ComplaintAdmin(admin.ModelAdmin):
|
|||||||
('Classification', {
|
('Classification', {
|
||||||
'fields': ('priority', 'severity', 'source')
|
'fields': ('priority', 'severity', 'source')
|
||||||
}),
|
}),
|
||||||
('Creator Tracking', {
|
|
||||||
'fields': ('created_by',)
|
|
||||||
}),
|
|
||||||
('Status & Assignment', {
|
('Status & Assignment', {
|
||||||
'fields': ('status', 'assigned_to', 'assigned_at')
|
'fields': ('status', 'assigned_to', 'assigned_at')
|
||||||
}),
|
}),
|
||||||
@ -97,8 +94,7 @@ class ComplaintAdmin(admin.ModelAdmin):
|
|||||||
qs = super().get_queryset(request)
|
qs = super().get_queryset(request)
|
||||||
return qs.select_related(
|
return qs.select_related(
|
||||||
'patient', 'hospital', 'department', 'staff',
|
'patient', 'hospital', 'department', 'staff',
|
||||||
'assigned_to', 'resolved_by', 'closed_by', 'resolution_survey',
|
'assigned_to', 'resolved_by', 'closed_by', 'resolution_survey'
|
||||||
'created_by'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def title_preview(self, obj):
|
def title_preview(self, obj):
|
||||||
@ -223,9 +219,9 @@ class InquiryAdmin(admin.ModelAdmin):
|
|||||||
"""Inquiry admin"""
|
"""Inquiry admin"""
|
||||||
list_display = [
|
list_display = [
|
||||||
'subject_preview', 'patient', 'contact_name',
|
'subject_preview', 'patient', 'contact_name',
|
||||||
'hospital', 'category', 'status', 'created_by', 'assigned_to', 'created_at'
|
'hospital', 'category', 'status', 'assigned_to', 'created_at'
|
||||||
]
|
]
|
||||||
list_filter = ['status', 'category', 'source', 'hospital', 'created_by', 'created_at']
|
list_filter = ['status', 'category', 'source', 'hospital', 'created_at']
|
||||||
search_fields = [
|
search_fields = [
|
||||||
'subject', 'message', 'contact_name', 'contact_phone',
|
'subject', 'message', 'contact_name', 'contact_phone',
|
||||||
'patient__mrn', 'patient__first_name', 'patient__last_name'
|
'patient__mrn', 'patient__first_name', 'patient__last_name'
|
||||||
@ -246,9 +242,6 @@ class InquiryAdmin(admin.ModelAdmin):
|
|||||||
('Inquiry Details', {
|
('Inquiry Details', {
|
||||||
'fields': ('subject', 'message', 'category', 'source')
|
'fields': ('subject', 'message', 'category', 'source')
|
||||||
}),
|
}),
|
||||||
('Creator Tracking', {
|
|
||||||
'fields': ('created_by',)
|
|
||||||
}),
|
|
||||||
('Status & Assignment', {
|
('Status & Assignment', {
|
||||||
'fields': ('status', 'assigned_to')
|
'fields': ('status', 'assigned_to')
|
||||||
}),
|
}),
|
||||||
@ -266,7 +259,7 @@ class InquiryAdmin(admin.ModelAdmin):
|
|||||||
qs = super().get_queryset(request)
|
qs = super().get_queryset(request)
|
||||||
return qs.select_related(
|
return qs.select_related(
|
||||||
'patient', 'hospital', 'department',
|
'patient', 'hospital', 'department',
|
||||||
'assigned_to', 'responded_by', 'created_by'
|
'assigned_to', 'responded_by'
|
||||||
)
|
)
|
||||||
|
|
||||||
def subject_preview(self, obj):
|
def subject_preview(self, obj):
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|||||||
14
apps/complaints/migrations/0006_merge_20260115_1447.py
Normal file
14
apps/complaints/migrations/0006_merge_20260115_1447.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Generated by Django 6.0.1 on 2026-01-15 11:47
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('complaints', '0004_complaint_created_by_inquiry_created_by_and_more'),
|
||||||
|
('complaints', '0005_complaintexplanation_escalated_at_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
]
|
||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import apps.observations.models
|
import apps.observations.models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import apps.references.models
|
import apps.references.models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.core.validators
|
import django.core.validators
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
<<<<<<< HEAD
|
|
||||||
# Generated by Django 6.0 on 2026-01-12 09:50
|
|
||||||
=======
|
|
||||||
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
# Generated by Django 6.0.1 on 2026-01-12 09:50
|
||||||
>>>>>>> 1f9d8a7 (update on the complaint sla and staff hierarchy)
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% extends base_layout %}
|
{% extends "layouts/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load math %}
|
{% load math %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user