diff --git a/accounts/__pycache__/models.cpython-312.pyc b/accounts/__pycache__/models.cpython-312.pyc index aba434b6..e26db44a 100644 Binary files a/accounts/__pycache__/models.cpython-312.pyc and b/accounts/__pycache__/models.cpython-312.pyc differ diff --git a/accounts/__pycache__/urls.cpython-312.pyc b/accounts/__pycache__/urls.cpython-312.pyc index fa150a36..6440c2d6 100644 Binary files a/accounts/__pycache__/urls.cpython-312.pyc and b/accounts/__pycache__/urls.cpython-312.pyc differ diff --git a/accounts/__pycache__/views.cpython-312.pyc b/accounts/__pycache__/views.cpython-312.pyc index 70993636..46b14088 100644 Binary files a/accounts/__pycache__/views.cpython-312.pyc and b/accounts/__pycache__/views.cpython-312.pyc differ diff --git a/accounts/models.py b/accounts/models.py index 58c6294e..d1bc676b 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -15,7 +15,43 @@ class User(AbstractUser): """ Extended user model for hospital management system. """ - + ROLE_CHOICES = [ + ('SUPER_ADMIN', 'Super Administrator'), + ('ADMIN', 'Administrator'), + ('PHYSICIAN', 'Physician'), + ('NURSE', 'Nurse'), + ('NURSE_PRACTITIONER', 'Nurse Practitioner'), + ('PHYSICIAN_ASSISTANT', 'Physician Assistant'), + ('PHARMACIST', 'Pharmacist'), + ('PHARMACY_TECH', 'Pharmacy Technician'), + ('LAB_TECH', 'Laboratory Technician'), + ('RADIOLOGIST', 'Radiologist'), + ('RAD_TECH', 'Radiology Technician'), + ('THERAPIST', 'Therapist'), + ('SOCIAL_WORKER', 'Social Worker'), + ('CASE_MANAGER', 'Case Manager'), + ('BILLING_SPECIALIST', 'Billing Specialist'), + ('REGISTRATION', 'Registration Staff'), + ('SCHEDULER', 'Scheduler'), + ('MEDICAL_ASSISTANT', 'Medical Assistant'), + ('CLERICAL', 'Clerical Staff'), + ('IT_SUPPORT', 'IT Support'), + ('QUALITY_ASSURANCE', 'Quality Assurance'), + ('COMPLIANCE', 'Compliance Officer'), + ('SECURITY', 'Security'), + ('MAINTENANCE', 'Maintenance'), + ('VOLUNTEER', 'Volunteer'), + ('STUDENT', 'Student'), + ('RESEARCHER', 'Researcher'), + ('CONSULTANT', 'Consultant'), + ('VENDOR', 'Vendor'), + ('GUEST', 'Guest'), + ] + THEME_CHOICES = [ + ('LIGHT', 'Light'), + ('DARK', 'Dark'), + ('AUTO', 'Auto'), + ] # Basic Information user_id = models.UUIDField( default=uuid.uuid4, @@ -91,38 +127,7 @@ class User(AbstractUser): # Role and Permissions role = models.CharField( max_length=50, - choices=[ - ('SUPER_ADMIN', 'Super Administrator'), - ('ADMIN', 'Administrator'), - ('PHYSICIAN', 'Physician'), - ('NURSE', 'Nurse'), - ('NURSE_PRACTITIONER', 'Nurse Practitioner'), - ('PHYSICIAN_ASSISTANT', 'Physician Assistant'), - ('PHARMACIST', 'Pharmacist'), - ('PHARMACY_TECH', 'Pharmacy Technician'), - ('LAB_TECH', 'Laboratory Technician'), - ('RADIOLOGIST', 'Radiologist'), - ('RAD_TECH', 'Radiology Technician'), - ('THERAPIST', 'Therapist'), - ('SOCIAL_WORKER', 'Social Worker'), - ('CASE_MANAGER', 'Case Manager'), - ('BILLING_SPECIALIST', 'Billing Specialist'), - ('REGISTRATION', 'Registration Staff'), - ('SCHEDULER', 'Scheduler'), - ('MEDICAL_ASSISTANT', 'Medical Assistant'), - ('CLERICAL', 'Clerical Staff'), - ('IT_SUPPORT', 'IT Support'), - ('QUALITY_ASSURANCE', 'Quality Assurance'), - ('COMPLIANCE', 'Compliance Officer'), - ('SECURITY', 'Security'), - ('MAINTENANCE', 'Maintenance'), - ('VOLUNTEER', 'Volunteer'), - ('STUDENT', 'Student'), - ('RESEARCHER', 'Researcher'), - ('CONSULTANT', 'Consultant'), - ('VENDOR', 'Vendor'), - ('GUEST', 'Guest'), - ], + choices=ROLE_CHOICES, default='CLERICAL' ) @@ -204,11 +209,7 @@ class User(AbstractUser): ) theme = models.CharField( max_length=20, - choices=[ - ('LIGHT', 'Light'), - ('DARK', 'Dark'), - ('AUTO', 'Auto'), - ], + choices=THEME_CHOICES, default='LIGHT' ) diff --git a/accounts/urls.py b/accounts/urls.py index ac0e4c69..3517b139 100644 --- a/accounts/urls.py +++ b/accounts/urls.py @@ -19,6 +19,8 @@ urlpatterns = [ path('users//', views.UserDetailView.as_view(), name='user_detail'), path('profile/', views.UserProfileView.as_view(), name='user_profile'), path('sessions/', views.SessionManagementView.as_view(), name='session_management'), + # path('reset-password/', views.ResetPasswordView.as_view(), name='reset_password'), + path('profile-picture/', views.upload_avatar, name='upload_avatar'), # HTMX views diff --git a/accounts/views.py b/accounts/views.py index 8eaf3dcd..5a14c533 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -1,6 +1,8 @@ """ Accounts app views for hospital management system with comprehensive CRUD operations. """ +import os + from allauth.account.views import LoginView from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth import authenticate, login, logout @@ -1211,6 +1213,59 @@ def reset_user_password(request, pk): return redirect('accounts:user_detail', pk=pk) +def upload_avatar(request, pk): + tenant = getattr(request, 'tenant', None) + if not tenant: + messages.error(request, 'No tenant found.') + return redirect('accounts:user_list') + + user = get_object_or_404(User, pk=pk, tenant=tenant) + + if request.method == 'POST': + if 'profile_picture' in request.FILES: + # Delete old profile picture if it exists + if user.profile_picture: + old_picture_path = user.profile_picture.path + if os.path.exists(old_picture_path): + os.remove(old_picture_path) + + # Save new profile picture + user.profile_picture = request.FILES['profile_picture'] + user.save() + + # Log the upload + AuditLogger.log_event( + tenant=tenant, + event_type='UPDATE', + event_category='USER_MANAGEMENT', + action='Upload Profile Picture', + description=f'Uploaded profile picture for user: {user.username}', + user=request.user, + content_object=user, + request=request + ) + + messages.success(request, f'Profile picture updated successfully for "{user.username}".') + + if request.headers.get('HX-Request'): + # Return HTMX response with updated image + return render(request, 'account/partials/profile_picture.html', { + 'user_profile': user + }) + + return redirect('accounts:user_detail', pk=pk) + else: + messages.error(request, 'No image file was uploaded.') + + # For GET requests, return the upload form + if request.headers.get('HX-Request'): + return render(request, 'account/partials/upload_avatar_form.html', { + 'user_profile': user + }) + + return redirect('accounts:user_detail', pk=pk) + + # """ # Accounts app views for hospital management system with comprehensive CRUD operations. # """ diff --git a/db.sqlite3 b/db.sqlite3 index 065e72c0..00a9c5ea 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/inpatients/__pycache__/forms.cpython-312.pyc b/inpatients/__pycache__/forms.cpython-312.pyc index e54f534d..3aacf9e0 100644 Binary files a/inpatients/__pycache__/forms.cpython-312.pyc and b/inpatients/__pycache__/forms.cpython-312.pyc differ diff --git a/inpatients/__pycache__/views.cpython-312.pyc b/inpatients/__pycache__/views.cpython-312.pyc index e05dd33a..4a976d46 100644 Binary files a/inpatients/__pycache__/views.cpython-312.pyc and b/inpatients/__pycache__/views.cpython-312.pyc differ diff --git a/inpatients/forms.py b/inpatients/forms.py index da0e74c0..b26ca2b9 100644 --- a/inpatients/forms.py +++ b/inpatients/forms.py @@ -326,9 +326,9 @@ class DischargeSummaryForm(forms.ModelForm): if user and hasattr(user, 'tenant'): self.fields['admission'].queryset = Admission.objects.filter( tenant=user.tenant, - status__in=['ADMITTED', 'READY_FOR_DISCHARGE'] + status='ADMITTED' ).select_related('patient', 'current_ward', 'current_bed').order_by('patient__last_name', 'patient__first_name') - + self.fields['discharging_physician'].queryset = User.objects.filter( tenant=user.tenant, is_active=True, diff --git a/inpatients/views.py b/inpatients/views.py index 24f25d03..a86a510e 100644 --- a/inpatients/views.py +++ b/inpatients/views.py @@ -592,7 +592,7 @@ class AdmissionListView(LoginRequiredMixin, ListView): def get_queryset(self): queryset = Admission.objects.filter(tenant=self.request.user.tenant) - + # Filter by status status = self.request.GET.get('status') if status: @@ -625,10 +625,15 @@ class AdmissionListView(LoginRequiredMixin, ListView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) + tenant = self.request.user.tenant + total_admissions = Admission.objects.filter(tenant=tenant).count() + active_admissions = Admission.objects.filter(tenant=tenant, status='ADMITTED').count() context.update({ 'admission_statuses': Admission.STATUS_CHOICES, 'admission_types': Admission.ADMISSION_TYPE_CHOICES, - 'wards': Ward.objects.filter(tenant=self.request.user.tenant, is_active=True), + 'wards': Ward.objects.filter(tenant=tenant, is_active=True), + 'total_admissions': total_admissions, + 'active_admissions': active_admissions, }) return context @@ -909,7 +914,7 @@ def surgery_calendar(request): 'operating_rooms': sorted(set(surgery.operating_room for surgery in surgeries)) } - return render(request, 'inpatients/partials/surgery_calendar.html', context) + return render(request, 'inpatients/surgery_schedule.html', context) @login_required @@ -950,7 +955,7 @@ def transfer_patient(request, admission_id): transfer.save() # Log the action - AuditLogger.log( + AuditLogger.log_event( actor=request.user, action='TRANSFER_REQUESTED', target=admission, @@ -978,7 +983,7 @@ def transfer_patient(request, admission_id): 'priorities': Transfer._meta.get_field('priority').choices } - return render(request, 'inpatients/partials/transfer_form.html', context) + return render(request, 'inpatients/patient_transfer.html', context) @login_required @@ -986,6 +991,7 @@ def approve_transfer(request, transfer_id): """ HTMX endpoint for approving a transfer. """ + print("transfer clicked") transfer = get_object_or_404(Transfer, id=transfer_id, admission__tenant=request.user.tenant) if request.method == 'POST': @@ -1008,7 +1014,7 @@ def approve_transfer(request, transfer_id): transfer.save() # Log the action - AuditLogger.log( + AuditLogger.log_event( actor=request.user, action='TRANSFER_APPROVED', target=transfer, @@ -1075,7 +1081,7 @@ def complete_transfer(request, transfer_id): admission.save() # Log the action - AuditLogger.log( + AuditLogger.log_event( actor=request.user, action='TRANSFER_COMPLETED', target=transfer, @@ -1124,7 +1130,7 @@ def update_bed_status(request, bed_id): bed.save() # Log the action - AuditLogger.log( + AuditLogger.log_event( actor=request.user, action='BED_STATUS_UPDATED', target=bed, @@ -1559,62 +1565,62 @@ def maintenance_bed(request, pk): # return context # # -class WardDetailView(LoginRequiredMixin, DetailView): - """ - Detail view for a ward. - """ - model = Ward - template_name = 'inpatients/ward_detail.html' - context_object_name = 'ward' - - def get_queryset(self): - """Filter wards by tenant.""" - return Ward.objects.filter( - tenant=self.request.user.tenant - ).select_related('nurse_manager') - - def get_context_data(self, **kwargs): - context = super().get_context_data(**kwargs) - ward = self.get_object() - - # Get beds for this ward with patient information - context['beds'] = Bed.objects.filter( - ward=ward - ).select_related( - 'current_patient', 'current_admission' - ).order_by('room_number', 'bed_number') - - # Group beds by room for display - rooms = {} - for bed in context['beds']: - room_num = bed.room_number - if room_num not in rooms: - rooms[room_num] = [] - rooms[room_num].append(bed) - context['rooms'] = rooms - - # Get ward statistics - context['total_beds'] = context['beds'].count() - context['available_beds'] = context['beds'].filter(status='AVAILABLE').count() - context['occupied_beds'] = context['beds'].filter(status='OCCUPIED').count() - context['maintenance_beds'] = context['beds'].filter( - status__in=['MAINTENANCE', 'OUT_OF_ORDER', 'CLEANING'] - ).count() - - if context['total_beds'] > 0: - context['occupancy_rate'] = (context['occupied_beds'] / context['total_beds']) * 100 - else: - context['occupancy_rate'] = 0 - - # Get recent admissions to this ward - context['recent_admissions'] = Admission.objects.filter( - Q(initial_ward=ward) | Q(current_bed__ward=ward), - status__in=['ADMITTED', 'READY_FOR_DISCHARGE'] - ).select_related( - 'patient', 'admitting_physician' - ).order_by('-admitted_at')[:10] - - return context +# class WardDetailView(LoginRequiredMixin, DetailView): +# """ +# Detail view for a ward. +# """ +# model = Ward +# template_name = 'inpatients/ward_detail.html' +# context_object_name = 'ward' +# +# def get_queryset(self): +# """Filter wards by tenant.""" +# return Ward.objects.filter( +# tenant=self.request.user.tenant +# ).select_related('nurse_manager') +# +# def get_context_data(self, **kwargs): +# context = super().get_context_data(**kwargs) +# ward = self.get_object() +# +# # Get beds for this ward with patient information +# context['beds'] = Bed.objects.filter( +# ward=ward +# ).select_related( +# 'current_patient', 'current_admission' +# ).order_by('room_number', 'bed_number') +# +# # Group beds by room for display +# rooms = {} +# for bed in context['beds']: +# room_num = bed.room_number +# if room_num not in rooms: +# rooms[room_num] = [] +# rooms[room_num].append(bed) +# context['rooms'] = rooms +# +# # Get ward statistics +# context['total_beds'] = context['beds'].count() +# context['available_beds'] = context['beds'].filter(status='AVAILABLE').count() +# context['occupied_beds'] = context['beds'].filter(status='OCCUPIED').count() +# context['maintenance_beds'] = context['beds'].filter( +# status__in=['MAINTENANCE', 'OUT_OF_ORDER', 'CLEANING'] +# ).count() +# +# if context['total_beds'] > 0: +# context['occupancy_rate'] = (context['occupied_beds'] / context['total_beds']) * 100 +# else: +# context['occupancy_rate'] = 0 +# +# # Get recent admissions to this ward +# context['recent_admissions'] = Admission.objects.filter( +# Q(initial_ward=ward) | Q(current_bed__ward=ward), +# status__in=['ADMITTED', 'READY_FOR_DISCHARGE'] +# ).select_related( +# 'patient', 'admitting_physician' +# ).order_by('-admitted_at')[:10] +# +# return context # # # class WardCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView): @@ -2139,10 +2145,10 @@ def discharge_patient(request, pk): pk=pk, tenant=request.user.tenant ) - print(admission) + print(admission.status) # Only admitted patients can be discharged - if admission.status not in ['ADMITTED', 'READY_FOR_DISCHARGE']: + if not admission.status == 'ADMITTED': messages.error(request, _('Only admitted patients or patients ready for discharge can be discharged')) return redirect('inpatients:admission_detail', pk=admission.pk) @@ -2156,6 +2162,7 @@ def discharge_patient(request, pk): if summary_form.is_valid(): summary = summary_form.save(commit=False) summary.patient = admission.patient + summary.admission = admission summary.created_by = request.user summary.save() @@ -2168,41 +2175,42 @@ def discharge_patient(request, pk): else: initial = { 'patient': admission.patient, + 'admission': admission, 'discharge_diagnosis': admission.admitting_diagnosis, 'doctor_name': request.user.get_full_name() if request.user.role in ['DOCTOR', 'SPECIALIST'] else '' } summary_form = DischargeSummaryForm( initial=initial, user=request.user, - admission=admission + # admission=admission ) - return render(request, 'inpatients/discharges/discharge_form.html', { + return render(request, 'inpatients/discharges/discharge_planning.html', { 'admission': admission, 'form': summary_form }) # # -# @login_required +@login_required # @permission_required('inpatients.change_admission') -# def mark_ready_for_discharge(request, pk): -# """ -# Mark a patient as ready for discharge. -# """ -# admission = get_object_or_404( -# Admission, -# pk=pk, -# tenant=request.user.tenant -# ) -# -# # Only admitted patients can be marked ready for discharge -# if admission.status != 'ADMITTED': -# messages.error(request, _('Only admitted patients can be marked ready for discharge')) -# return redirect('inpatients:admission_detail', pk=admission.pk) -# -# admission.mark_ready_for_discharge() -# messages.success(request, _('Patient marked ready for discharge')) -# return redirect('inpatients:admission_detail', pk=admission.pk) +def mark_ready_for_discharge(request, pk): + """ + Mark a patient as ready for discharge. + """ + admission = get_object_or_404( + Admission, + pk=pk, + tenant=request.user.tenant + ) + + # Only admitted patients can be marked ready for discharge + if admission.status != 'ADMITTED': + messages.error(request, _('Only admitted patients can be marked ready for discharge')) + return redirect('inpatients:admission_detail', pk=admission.pk) + + admission.mark_ready_for_discharge() + messages.success(request, _('Patient marked ready for discharge')) + return redirect('inpatients:admission_detail', pk=admission.pk) # # # class TransferListView(LoginRequiredMixin, ListView): @@ -2977,36 +2985,36 @@ def discharge_patient(request, pk): # return redirect('inpatients:bed_detail', pk=bed.pk) # # -@login_required +# @login_required # @permission_required('inpatients.change_bed') -def maintenance_bed(request, pk): - """ - Mark a bed for maintenance. - """ - bed = get_object_or_404( - Bed, - pk=pk, - ward__tenant=request.user.tenant - ) - - # Only available beds can be marked for maintenance - if bed.status != 'AVAILABLE': - messages.error(request, _('Only available beds can be marked for maintenance')) - return redirect('inpatients:bed_detail', pk=bed.pk) - - if request.method == 'POST': - notes = request.POST.get('notes') - - # bed.mark_maintenance(notes) - bed.status = 'MAINTENANCE' - bed.notes = notes - bed.save() - messages.success(request, _('Bed marked for maintenance successfully')) - return redirect('inpatients:bed_detail', pk=bed.pk) - - return render(request, 'inpatients/maintenance_bed.html', { - 'bed': bed - }) +# def maintenance_bed(request, pk): +# """ +# Mark a bed for maintenance. +# """ +# bed = get_object_or_404( +# Bed, +# pk=pk, +# ward__tenant=request.user.tenant +# ) +# +# # Only available beds can be marked for maintenance +# if bed.status != 'AVAILABLE': +# messages.error(request, _('Only available beds can be marked for maintenance')) +# return redirect('inpatients:bed_detail', pk=bed.pk) +# +# if request.method == 'POST': +# notes = request.POST.get('notes') +# +# # bed.mark_maintenance(notes) +# bed.status = 'MAINTENANCE' +# bed.notes = notes +# bed.save() +# messages.success(request, _('Bed marked for maintenance successfully')) +# return redirect('inpatients:bed_detail', pk=bed.pk) +# +# return render(request, 'inpatients/maintenance_bed.html', { +# 'bed': bed +# }) # # # @login_required diff --git a/logs/hospital_management.log b/logs/hospital_management.log index 3167e534..dad02b5b 100644 --- a/logs/hospital_management.log +++ b/logs/hospital_management.log @@ -78213,3 +78213,2170 @@ INFO 2025-08-20 16:00:22,498 basehttp 75687 6194688000 "GET /en/htmx/system-noti INFO 2025-08-20 16:01:24,412 basehttp 75687 6194688000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 INFO 2025-08-20 16:02:57,407 basehttp 75687 6194688000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 INFO 2025-08-20 16:04:57,434 basehttp 75687 6194688000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:47:09,802 autoreload 9194 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 16:47:11,844 basehttp 9194 13304360960 "GET /en/inpatients/beds/1612/maintenance/ HTTP/1.1" 200 34313 +INFO 2025-08-20 16:47:11,936 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 16:47:12,078 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:12,079 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:47:12,645 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:12,646 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:47:12,945 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:47:13,420 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +WARNING 2025-08-20 16:47:13,437 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:13,437 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:47:13,550 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:47:13,668 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:47:16,645 basehttp 9194 13304360960 "GET /en/inpatients/admissions/create/ HTTP/1.1" 200 51178 +WARNING 2025-08-20 16:47:16,665 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:16,666 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:47:16,703 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:47:19,791 basehttp 9194 13304360960 "POST /en/inpatients/admissions/create/ HTTP/1.1" 200 52277 +WARNING 2025-08-20 16:47:19,807 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:19,807 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:47:19,853 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:47:31,350 basehttp 9194 13304360960 "GET /en/inpatients/admissions/create/ HTTP/1.1" 200 51178 +WARNING 2025-08-20 16:47:31,366 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:31,367 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:47:32,135 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:32,135 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:47:32,146 log 9194 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:47:32,147 basehttp 9194 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:47:43,681 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:48:13,552 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:48:13,667 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:48:43,696 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:49:13,567 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:49:13,671 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:49:43,718 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:50:13,611 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:50:13,711 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:50:43,736 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:51:13,607 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 16:51:13,709 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:51:43,709 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:52:13,619 basehttp 9194 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4635 +INFO 2025-08-20 16:52:13,719 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:52:43,742 basehttp 9194 13304360960 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:53:06,024 autoreload 9194 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 16:53:06,370 autoreload 11785 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 16:53:07,376 basehttp 11785 6135558144 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +WARNING 2025-08-20 16:53:07,389 log 11785 6152384512 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:53:07,389 basehttp 11785 6152384512 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:53:07,531 basehttp 11785 6152384512 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4635 +INFO 2025-08-20 16:53:07,666 basehttp 11785 6152384512 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:53:23,201 basehttp 11785 6152384512 "GET /en/inpatients/discharge/323/ HTTP/1.1" 302 0 +INFO 2025-08-20 16:53:23,221 basehttp 11785 6152384512 "GET /en/inpatients/admissions/323/ HTTP/1.1" 200 26837 +WARNING 2025-08-20 16:53:23,241 log 11785 6152384512 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:53:23,241 basehttp 11785 6152384512 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:53:23,284 basehttp 11785 6152384512 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4690 +WARNING 2025-08-20 16:53:33,927 log 11785 6152384512 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:53:33,927 basehttp 11785 6152384512 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:53:33,940 log 11785 6152384512 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:53:33,940 basehttp 11785 6152384512 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:53:37,676 basehttp 11785 6152384512 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:53:57,904 basehttp 11785 6152384512 "GET /en/inpatients/beds/1749/edit/ HTTP/1.1" 200 35207 +WARNING 2025-08-20 16:53:57,919 log 11785 6152384512 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:53:57,919 basehttp 11785 6152384512 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:53:57,992 basehttp 11785 6152384512 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4690 +WARNING 2025-08-20 16:54:15,792 log 11785 6169210880 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:54:15,792 basehttp 11785 6169210880 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:54:15,805 basehttp 11785 6152384512 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +WARNING 2025-08-20 16:54:15,810 log 11785 6169210880 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:54:15,811 basehttp 11785 6169210880 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:54:15,866 basehttp 11785 6135558144 "GET /en/inpatients/beds/ HTTP/1.1" 200 2102777 +INFO 2025-08-20 16:54:26,554 basehttp 11785 6135558144 "GET /en/inpatients/beds/1758/ HTTP/1.1" 200 31628 +WARNING 2025-08-20 16:54:26,569 log 11785 6135558144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:54:26,569 basehttp 11785 6135558144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:54:26,619 basehttp 11785 6135558144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:54:43,697 basehttp 11785 6135558144 "GET /en/admin/inpatients/bed/ HTTP/1.1" 200 144331 +INFO 2025-08-20 16:54:43,716 basehttp 11785 6152384512 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-08-20 16:54:43,716 basehttp 11785 6169210880 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-08-20 16:54:43,717 basehttp 11785 13723840512 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-08-20 16:54:43,717 basehttp 11785 13707014144 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-08-20 16:54:43,718 basehttp 11785 6135558144 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-08-20 16:54:43,719 basehttp 11785 13707014144 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-08-20 16:54:43,719 basehttp 11785 6152384512 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-08-20 16:54:43,720 basehttp 11785 13723840512 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-08-20 16:54:43,721 basehttp 11785 6135558144 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-08-20 16:54:43,721 basehttp 11785 6152384512 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-08-20 16:54:43,722 basehttp 11785 13707014144 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-08-20 16:54:43,723 basehttp 11785 13723840512 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-08-20 16:54:43,724 basehttp 11785 6152384512 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-08-20 16:54:43,725 basehttp 11785 13740666880 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 16:54:43,725 basehttp 11785 6169210880 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-08-20 16:54:43,726 basehttp 11785 6169210880 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +INFO 2025-08-20 16:54:43,726 basehttp 11785 6135558144 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-08-20 16:54:43,729 basehttp 11785 6135558144 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-08-20 16:54:43,736 basehttp 11785 6135558144 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-08-20 16:54:43,737 basehttp 11785 13740666880 "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097 +INFO 2025-08-20 16:54:43,737 basehttp 11785 6169210880 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-08-20 16:54:43,737 basehttp 11785 6169210880 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-08-20 16:54:45,940 basehttp 11785 6169210880 "GET /en/admin/inpatients/bed/1605/change/ HTTP/1.1" 200 115703 +INFO 2025-08-20 16:54:45,953 basehttp 11785 13723840512 "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 586 +INFO 2025-08-20 16:54:45,953 basehttp 11785 6169210880 "GET /static/admin/css/forms.css HTTP/1.1" 200 8525 +INFO 2025-08-20 16:54:45,954 basehttp 11785 6135558144 "GET /static/admin/js/calendar.js HTTP/1.1" 200 9141 +INFO 2025-08-20 16:54:45,954 basehttp 11785 6152384512 "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19319 +INFO 2025-08-20 16:54:45,955 basehttp 11785 6135558144 "GET /static/admin/css/widgets.css HTTP/1.1" 200 11991 +INFO 2025-08-20 16:54:45,955 basehttp 11785 6169210880 "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 +INFO 2025-08-20 16:54:45,956 basehttp 11785 6169210880 "GET /static/admin/img/icon-deletelink.svg HTTP/1.1" 200 392 +INFO 2025-08-20 16:54:45,957 basehttp 11785 13740666880 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 16:54:45,958 basehttp 11785 6169210880 "GET /static/admin/js/change_form.js HTTP/1.1" 200 606 +INFO 2025-08-20 16:54:45,984 basehttp 11785 6169210880 "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086 +INFO 2025-08-20 16:54:45,984 basehttp 11785 13740666880 "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677 +INFO 2025-08-20 16:54:49,759 basehttp 11785 13740666880 "GET /en/admin/inpatients/bed/1758/change/ HTTP/1.1" 200 115780 +INFO 2025-08-20 16:54:49,777 basehttp 11785 13740666880 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-08-20 16:55:12,325 log 11785 13740666880 Internal Server Error: /en/admin/inpatients/admission/add/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/options.py", line 683, in get_field + return self.fields_map[field_name] + ~~~~~~~~~~~~~~~^^^^^^^^^^^^ +KeyError: 'length_of_stay' + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/utils.py", line 290, in lookup_field + f = _get_non_gfk_field(opts, name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/utils.py", line 330, in _get_non_gfk_field + field = opts.get_field(name) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/options.py", line 685, in get_field + raise FieldDoesNotExist( +django.core.exceptions.FieldDoesNotExist: Admission has no field named 'length_of_stay' + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 210, in render + return template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 173, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1075, in render + output = self.filter_expression.resolve(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 722, in resolve + obj = self.var.resolve(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 854, in resolve + value = self._resolve_lookup(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 925, in _resolve_lookup + current = current() + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/helpers.py", line 275, in contents + f, attr, value = lookup_field(field, obj, model_admin) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/utils.py", line 302, in lookup_field + attr = getattr(obj, name, sentinel) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/models.py", line 832, in length_of_stay + return (end_time - self.admission_datetime).days + ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType' +ERROR 2025-08-20 16:55:12,328 basehttp 11785 13740666880 "GET /en/admin/inpatients/admission/add/?_to_field=id&_popup=1 HTTP/1.1" 500 597924 +INFO 2025-08-20 16:55:27,416 basehttp 11785 13740666880 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:55:49,897 basehttp 11785 13740666880 "POST /en/admin/inpatients/bed/1758/change/ HTTP/1.1" 302 0 +INFO 2025-08-20 16:55:49,943 basehttp 11785 13740666880 "GET /en/admin/inpatients/bed/ HTTP/1.1" 200 144570 +INFO 2025-08-20 16:55:49,960 basehttp 11785 13740666880 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 16:55:49,969 basehttp 11785 13740666880 "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 +INFO 2025-08-20 16:55:56,366 basehttp 11785 13740666880 "GET /en/inpatients/beds/1758/ HTTP/1.1" 200 33423 +WARNING 2025-08-20 16:55:56,378 log 11785 13740666880 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:55:56,378 basehttp 11785 13740666880 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:55:56,419 basehttp 11785 13740666880 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:56:01,672 basehttp 11785 13740666880 "GET /en/inpatients/admissions/335/ HTTP/1.1" 200 23994 +WARNING 2025-08-20 16:56:02,081 log 11785 13740666880 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:02,081 basehttp 11785 13740666880 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:56:02,121 basehttp 11785 13740666880 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +WARNING 2025-08-20 16:56:11,420 log 11785 13740666880 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:11,420 basehttp 11785 13740666880 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:56:11,429 log 11785 13740666880 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:11,429 basehttp 11785 13740666880 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:56:16,361 log 11785 6135558144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:16,362 basehttp 11785 6135558144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:56:16,375 basehttp 11785 6169210880 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +WARNING 2025-08-20 16:56:16,377 log 11785 6135558144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:16,377 basehttp 11785 6135558144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:56:16,431 basehttp 11785 13740666880 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 16:56:17,273 basehttp 11785 13740666880 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 16:56:17,291 log 11785 6135558144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:17,291 basehttp 11785 6135558144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:56:17,420 basehttp 11785 6135558144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:56:17,540 basehttp 11785 6135558144 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 16:56:24,177 basehttp 11785 6135558144 "GET /en/inpatients/discharge/335/ HTTP/1.1" 302 0 +INFO 2025-08-20 16:56:24,192 basehttp 11785 6135558144 "GET /en/inpatients/admissions/335/ HTTP/1.1" 200 24426 +WARNING 2025-08-20 16:56:24,215 log 11785 6135558144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:56:24,215 basehttp 11785 6135558144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:56:24,250 basehttp 11785 6135558144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:57:01,978 autoreload 11785 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 16:57:02,327 autoreload 13576 8601149632 Watching for file changes with StatReloader +WARNING 2025-08-20 16:57:04,218 log 13576 6207795200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:04,218 basehttp 13576 6207795200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:57:04,229 log 13576 6207795200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:04,229 basehttp 13576 6207795200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:57:04,325 basehttp 13576 6190968832 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 16:57:04,908 basehttp 13576 6190968832 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 16:57:04,924 log 13576 6207795200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:04,924 basehttp 13576 6207795200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:57:05,046 basehttp 13576 6207795200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:57:05,165 basehttp 13576 6207795200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 16:57:10,436 basehttp 13576 6207795200 "GET /en/inpatients/discharge/335/ HTTP/1.1" 302 0 +INFO 2025-08-20 16:57:10,482 basehttp 13576 6207795200 "GET /en/inpatients/admissions/335/ HTTP/1.1" 200 24426 +WARNING 2025-08-20 16:57:10,505 log 13576 6207795200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:10,505 basehttp 13576 6207795200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:57:10,545 basehttp 13576 6207795200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:57:32,672 autoreload 13576 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 16:57:33,012 autoreload 13813 8601149632 Watching for file changes with StatReloader +WARNING 2025-08-20 16:57:34,512 log 13813 6157840384 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:34,512 basehttp 13813 6157840384 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 16:57:34,529 log 13813 6157840384 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:34,529 basehttp 13813 6157840384 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:57:35,208 basehttp 13813 6157840384 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 16:57:35,219 log 13813 6191493120 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:35,219 basehttp 13813 6191493120 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:57:35,270 basehttp 13813 6174666752 - Broken pipe from ('127.0.0.1', 49970) +INFO 2025-08-20 16:57:35,334 basehttp 13813 6191493120 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:57:35,446 basehttp 13813 6191493120 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +ERROR 2025-08-20 16:57:41,650 log 13813 6191493120 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 16:57:41,651 basehttp 13813 6191493120 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78475 +WARNING 2025-08-20 16:57:41,673 log 13813 6191493120 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:57:41,673 basehttp 13813 6191493120 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:59:08,966 autoreload 13813 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py changed, reloading. +INFO 2025-08-20 16:59:09,283 autoreload 14519 8601149632 Watching for file changes with StatReloader +WARNING 2025-08-20 16:59:13,296 log 14519 6189281280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:59:13,296 basehttp 14519 6189281280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:59:13,342 basehttp 14519 6172454912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +WARNING 2025-08-20 16:59:13,345 log 14519 6189281280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:59:13,346 basehttp 14519 6189281280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:59:13,399 basehttp 14519 6155628544 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 16:59:13,792 basehttp 14519 6155628544 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 16:59:13,803 log 14519 6189281280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:59:13,803 basehttp 14519 6189281280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 16:59:13,944 basehttp 14519 6189281280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 16:59:14,071 basehttp 14519 6189281280 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +ERROR 2025-08-20 16:59:22,004 log 14519 6189281280 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 16:59:22,006 basehttp 14519 6189281280 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78436 +WARNING 2025-08-20 16:59:22,028 log 14519 6189281280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 16:59:22,028 basehttp 14519 6189281280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:00:59,517 autoreload 14519 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 17:00:59,869 autoreload 15292 8601149632 Watching for file changes with StatReloader +WARNING 2025-08-20 17:01:00,675 log 15292 6203207680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:01:00,675 basehttp 15292 6203207680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 17:01:00,683 log 15292 6203207680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:01:00,684 basehttp 15292 6203207680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:01:00,720 basehttp 15292 6186381312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 17:01:00,777 basehttp 15292 6169554944 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 17:01:01,241 basehttp 15292 6169554944 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 17:01:01,253 log 15292 6186381312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:01:01,253 basehttp 15292 6186381312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:01:01,375 basehttp 15292 6186381312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 17:01:01,494 basehttp 15292 6186381312 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 17:01:06,096 basehttp 15292 6186381312 "GET /en/inpatients/discharge/335/ HTTP/1.1" 302 0 +INFO 2025-08-20 17:01:06,115 basehttp 15292 6186381312 "GET /en/inpatients/admissions/335/ HTTP/1.1" 200 24426 +WARNING 2025-08-20 17:01:06,407 log 15292 6186381312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:01:06,407 basehttp 15292 6186381312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:01:06,446 basehttp 15292 6186381312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 17:02:06,463 basehttp 15292 6186381312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 17:02:22,072 autoreload 15292 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 17:02:22,445 autoreload 15910 8601149632 Watching for file changes with StatReloader +WARNING 2025-08-20 17:02:22,957 log 15910 13052751872 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:02:22,957 basehttp 15910 13052751872 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:02:22,999 basehttp 15910 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 17:02:23,002 log 15910 13052751872 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:02:23,004 basehttp 15910 13052751872 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:02:23,006 basehttp 15910 13052751872 - Broken pipe from ('127.0.0.1', 51204) +INFO 2025-08-20 17:02:23,059 basehttp 15910 6159806464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 17:02:23,614 basehttp 15910 6159806464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 17:02:23,628 log 15910 13035925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:02:23,628 basehttp 15910 13035925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:02:23,765 basehttp 15910 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 17:02:23,915 basehttp 15910 13035925504 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 17:02:28,871 basehttp 15910 13035925504 "GET /en/inpatients/discharge/335/ HTTP/1.1" 302 0 +INFO 2025-08-20 17:02:28,889 basehttp 15910 13035925504 "GET /en/inpatients/admissions/335/ HTTP/1.1" 200 24426 +WARNING 2025-08-20 17:02:28,910 log 15910 13035925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:02:28,911 basehttp 15910 13035925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:02:28,947 basehttp 15910 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 17:03:26,955 autoreload 15910 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 17:03:27,294 autoreload 16385 8601149632 Watching for file changes with StatReloader +WARNING 2025-08-20 17:03:28,403 log 16385 6375518208 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:03:28,404 basehttp 16385 6375518208 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 17:03:28,413 log 16385 6375518208 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:03:28,413 basehttp 16385 6375518208 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:03:28,449 basehttp 16385 6358691840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 17:03:28,508 basehttp 16385 6341865472 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 17:03:28,960 basehttp 16385 6341865472 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 17:03:28,970 log 16385 6358691840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:03:28,970 basehttp 16385 6358691840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:03:29,105 basehttp 16385 6358691840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 17:03:29,234 basehttp 16385 6358691840 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +ERROR 2025-08-20 17:03:34,886 log 16385 6358691840 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2142, in discharge_patient + print(admission.status.first) + ^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'str' object has no attribute 'first' +ERROR 2025-08-20 17:03:34,887 basehttp 16385 6358691840 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 72822 +WARNING 2025-08-20 17:03:34,908 log 16385 6358691840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:03:34,909 basehttp 16385 6358691840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:04:02,773 autoreload 16385 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 17:04:03,119 autoreload 16717 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 17:04:37,518 basehttp 16717 6160756736 "GET /en/admin/inpatients/bed/?o=6.2 HTTP/1.1" 200 148158 +INFO 2025-08-20 17:04:37,536 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:04:38,787 basehttp 16717 6160756736 "GET /en/admin/inpatients/bed/?o=-6.2 HTTP/1.1" 200 148419 +INFO 2025-08-20 17:04:38,801 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:04:43,538 basehttp 16717 6160756736 "GET /en/admin/inpatients/bed/1758/change/?_changelist_filters=o%3D-6.2 HTTP/1.1" 200 115876 +INFO 2025-08-20 17:04:43,556 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:05:04,024 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/ HTTP/1.1" 200 139052 +INFO 2025-08-20 17:05:04,044 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:05:21,203 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/?o=1.-2 HTTP/1.1" 200 142535 +INFO 2025-08-20 17:05:21,215 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:05:25,669 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/335/change/?_changelist_filters=o%3D1.-2 HTTP/1.1" 200 161502 +INFO 2025-08-20 17:05:25,685 basehttp 16717 6177583104 "GET /static/admin/js/SelectBox.js HTTP/1.1" 200 4530 +INFO 2025-08-20 17:05:25,685 basehttp 16717 6194409472 "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 200 15845 +INFO 2025-08-20 17:05:25,686 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:05:25,706 basehttp 16717 6160756736 "GET /static/admin/img/selector-icons.svg HTTP/1.1" 200 3291 +INFO 2025-08-20 17:05:41,398 basehttp 16717 6160756736 "POST /en/admin/inpatients/admission/335/change/?_changelist_filters=o%3D1.-2 HTTP/1.1" 302 0 +INFO 2025-08-20 17:05:41,473 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/?o=1.-2 HTTP/1.1" 200 142762 +INFO 2025-08-20 17:05:41,488 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-08-20 17:05:45,278 log 16717 6160756736 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 17:05:45,279 basehttp 16717 6160756736 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78573 +WARNING 2025-08-20 17:05:45,290 log 16717 6160756736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:05:45,291 basehttp 16717 6160756736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 17:05:47,471 log 16717 6177583104 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:05:47,472 basehttp 16717 6177583104 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:05:47,506 basehttp 16717 6194409472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 17:05:47,508 log 16717 6177583104 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:05:47,509 basehttp 16717 6177583104 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:05:47,562 basehttp 16717 6160756736 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 17:05:48,243 basehttp 16717 6160756736 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 17:05:48,262 log 16717 6160756736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:05:48,262 basehttp 16717 6160756736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:05:48,396 basehttp 16717 6160756736 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 17:05:48,553 basehttp 16717 6160756736 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +ERROR 2025-08-20 17:05:53,708 log 16717 6160756736 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 17:05:53,708 basehttp 16717 6160756736 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78436 +WARNING 2025-08-20 17:05:53,730 log 16717 6160756736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:05:53,730 basehttp 16717 6160756736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 17:06:58,269 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/?admission_datetime__month=8&admission_datetime__year=2025&o=1.-2 HTTP/1.1" 200 126305 +INFO 2025-08-20 17:06:58,286 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:07:11,741 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/335/change/?_changelist_filters=admission_datetime__month%3D8%26admission_datetime__year%3D2025%26o%3D1.-2 HTTP/1.1" 200 161699 +INFO 2025-08-20 17:07:11,758 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-20 17:07:49,725 basehttp 16717 6160756736 "POST /en/admin/inpatients/admission/335/change/?_changelist_filters=admission_datetime__month%3D8%26admission_datetime__year%3D2025%26o%3D1.-2 HTTP/1.1" 302 0 +INFO 2025-08-20 17:07:49,789 basehttp 16717 6160756736 "GET /en/admin/inpatients/admission/?admission_datetime__month=8&admission_datetime__year=2025&o=1.-2 HTTP/1.1" 200 126542 +INFO 2025-08-20 17:07:49,803 basehttp 16717 6160756736 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-08-20 17:07:54,800 log 16717 6160756736 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 17:07:54,801 basehttp 16717 6160756736 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78573 +WARNING 2025-08-20 17:07:54,814 log 16717 6160756736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:07:54,814 basehttp 16717 6160756736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-20 17:41:48,232 log 16717 6160756736 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 17:41:48,233 basehttp 16717 6160756736 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78573 +WARNING 2025-08-20 17:41:48,247 log 16717 6160756736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 17:41:48,247 basehttp 16717 6160756736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:05:13,191 autoreload 16717 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py changed, reloading. +INFO 2025-08-20 18:05:13,513 autoreload 43280 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 18:05:15,770 log 43280 6164377600 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 18:05:15,771 basehttp 43280 6164377600 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78573 +WARNING 2025-08-20 18:05:15,784 log 43280 6164377600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:05:15,784 basehttp 43280 6164377600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:05:33,397 autoreload 43280 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py changed, reloading. +INFO 2025-08-20 18:05:33,713 autoreload 43448 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 18:05:35,853 log 43448 6127038464 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 18:05:35,855 basehttp 43448 6127038464 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78581 +WARNING 2025-08-20 18:05:35,868 log 43448 6127038464 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:05:35,868 basehttp 43448 6127038464 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:07:21,092 autoreload 43448 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py changed, reloading. +INFO 2025-08-20 18:07:21,392 autoreload 44216 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 18:10:03,884 autoreload 44216 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py changed, reloading. +INFO 2025-08-20 18:10:04,238 autoreload 45440 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 18:10:07,023 log 45440 6156267520 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 18:10:07,024 basehttp 45440 6156267520 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78583 +WARNING 2025-08-20 18:10:07,037 log 45440 6156267520 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:10:07,037 basehttp 45440 6156267520 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:19:50,786 autoreload 45440 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py changed, reloading. +INFO 2025-08-20 18:19:51,098 autoreload 49636 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 18:25:08,789 log 49636 6202781696 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2174, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 18:25:08,790 basehttp 49636 6202781696 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78573 +WARNING 2025-08-20 18:25:08,801 log 49636 6202781696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:25:08,801 basehttp 49636 6202781696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 18:25:10,374 log 49636 6202781696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:25:10,374 basehttp 49636 6202781696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:25:10,728 basehttp 49636 6202781696 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:25:11,855 basehttp 49636 6202781696 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +WARNING 2025-08-20 18:25:11,870 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:25:11,870 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:25:11,967 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:25:12,093 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:25:25,768 basehttp 49636 6219608064 "GET /en/inpatients/discharge/323/ HTTP/1.1" 302 0 +INFO 2025-08-20 18:25:25,788 basehttp 49636 6219608064 "GET /en/inpatients/admissions/323/ HTTP/1.1" 200 26837 +WARNING 2025-08-20 18:25:25,808 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:25:25,808 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:25:25,848 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 18:25:32,918 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:25:32,918 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 18:25:32,931 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:25:32,931 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:25:42,091 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:26:11,970 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:26:12,094 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:26:42,122 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:27:11,974 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:27:12,101 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:27:42,119 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:28:11,982 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:28:12,101 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104066 +INFO 2025-08-20 18:28:34,764 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +WARNING 2025-08-20 18:28:34,782 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:28:34,783 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:28:34,918 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:28:35,036 basehttp 49636 6219608064 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 18:28:39,933 basehttp 49636 6219608064 "GET /en/inpatients/beds/1705/maintenance/ HTTP/1.1" 200 34313 +WARNING 2025-08-20 18:28:39,954 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:28:39,954 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:28:39,975 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 18:28:42,327 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:28:42,327 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 18:28:42,337 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:28:42,337 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:28:43,693 basehttp 49636 6219608064 "GET /en/inpatients/admissions/create/ HTTP/1.1" 200 51178 +WARNING 2025-08-20 18:28:43,706 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:28:43,706 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:28:43,747 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:28:48,262 basehttp 49636 6219608064 "GET /en/inpatients/admissions/ HTTP/1.1" 200 160288 +WARNING 2025-08-20 18:28:48,282 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:28:48,283 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:28:48,324 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:29:00,224 basehttp 49636 6219608064 "GET /en/inpatients/admissions/393/ HTTP/1.1" 200 23806 +WARNING 2025-08-20 18:29:00,242 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:29:00,242 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:29:00,282 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 18:29:02,384 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:29:02,384 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 18:29:02,399 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:29:02,399 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:29:48,326 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:30:26,738 basehttp 49636 6219608064 "GET /en/inpatients/admissions/ HTTP/1.1" 200 160424 +WARNING 2025-08-20 18:30:26,753 log 49636 6219608064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 18:30:26,753 basehttp 49636 6219608064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 18:30:26,810 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:31:26,824 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:32:26,828 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:33:26,833 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:34:26,834 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:35:26,841 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:36:26,876 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:37:26,884 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:38:26,889 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:39:26,896 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:40:26,900 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:41:27,419 basehttp 49636 6219608064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:42:29,414 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:43:57,410 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:45:57,410 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:47:57,413 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:49:57,419 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:51:57,419 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 18:53:57,421 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4690 +INFO 2025-08-20 18:55:57,422 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 18:57:20,123 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 18:58:20,421 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 18:59:22,426 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:00:57,428 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:02:57,424 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:04:57,428 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:06:57,335 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:08:57,336 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:10:57,336 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:12:57,335 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:14:57,338 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:16:57,332 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:18:57,331 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:20:57,332 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:22:57,324 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:24:57,325 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:26:57,321 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:28:57,322 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:30:57,323 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:32:57,318 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:34:57,317 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:35:57,319 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:36:57,313 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:37:57,320 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:38:57,383 basehttp 49636 6202781696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:39:21,460 autoreload 49636 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:39:21,827 autoreload 84486 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:39:22,352 log 84486 6130692096 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 158, in get + self.object_list = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 596, in get_queryset + total_admissions = queryset.aggregate(Sum('total_beds'))['total_beds__sum'] or 0 + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'total_beds' into field. Choices are: acuity_level, admission_datetime, admission_id, admission_notes, admission_source, admission_type, admitting_diagnosis, admitting_physician, admitting_physician_id, advance_directive, alerts, allergies, anticipated_discharge_date, assigned_bed, attending_physician, attending_physician_id, authorization_number, chief_complaint, code_status, consulting_physicians, created_at, created_by, created_by_id, current_bed, current_bed_id, current_ward, current_ward_id, discharge_datetime, discharge_disposition, discharge_planner, discharge_planner_id, discharge_planning_started, discharge_summary, encounters, estimated_length_of_stay, healthcare_proxy, id, insurance_verified, isolation_required, isolation_type, medical_bills, patient, patient_id, priority, secondary_diagnoses, special_needs, status, surgeries, surgical_cases, tenant, tenant_id, transfers, updated_at +ERROR 2025-08-20 19:39:22,355 basehttp 84486 6130692096 "GET /en/inpatients/admissions/ HTTP/1.1" 500 133551 +WARNING 2025-08-20 19:39:22,370 log 84486 6130692096 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:39:22,370 basehttp 84486 6130692096 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:41:18,113 autoreload 84486 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:41:18,435 autoreload 85413 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:41:18,842 log 85413 6190313472 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 158, in get + self.object_list = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 596, in get_queryset + total_admissions = queryset.filter(is_active=True).count() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'is_active' into field. Choices are: acuity_level, admission_datetime, admission_id, admission_notes, admission_source, admission_type, admitting_diagnosis, admitting_physician, admitting_physician_id, advance_directive, alerts, allergies, anticipated_discharge_date, assigned_bed, attending_physician, attending_physician_id, authorization_number, chief_complaint, code_status, consulting_physicians, created_at, created_by, created_by_id, current_bed, current_bed_id, current_ward, current_ward_id, discharge_datetime, discharge_disposition, discharge_planner, discharge_planner_id, discharge_planning_started, discharge_summary, encounters, estimated_length_of_stay, healthcare_proxy, id, insurance_verified, isolation_required, isolation_type, medical_bills, patient, patient_id, priority, secondary_diagnoses, special_needs, status, surgeries, surgical_cases, tenant, tenant_id, transfers, updated_at +ERROR 2025-08-20 19:41:18,844 basehttp 85413 6190313472 "GET /en/inpatients/admissions/ HTTP/1.1" 500 135848 +WARNING 2025-08-20 19:41:18,857 log 85413 6190313472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:41:18,857 basehttp 85413 6190313472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:42:11,434 autoreload 85413 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:42:11,747 autoreload 85811 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:42:12,186 log 85811 6128644096 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 634, in get_context_data + 'total_admissions': self.total_admissions + ^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'AdmissionListView' object has no attribute 'total_admissions' +ERROR 2025-08-20 19:42:12,188 basehttp 85811 6128644096 "GET /en/inpatients/admissions/ HTTP/1.1" 500 89036 +WARNING 2025-08-20 19:42:12,202 log 85811 6128644096 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:42:12,202 basehttp 85811 6128644096 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:42:37,899 autoreload 85811 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:42:38,262 autoreload 85976 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:42:39,148 log 85976 6135934976 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 634, in get_context_data + 'total_admissions': self.queryset.total_admissions + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'total_admissions' +ERROR 2025-08-20 19:42:39,149 basehttp 85976 6135934976 "GET /en/inpatients/admissions/ HTTP/1.1" 500 89036 +WARNING 2025-08-20 19:42:39,161 log 85976 6135934976 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:42:39,161 basehttp 85976 6135934976 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-20 19:42:40,064 log 85976 6135934976 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 634, in get_context_data + 'total_admissions': self.queryset.total_admissions + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'total_admissions' +ERROR 2025-08-20 19:42:40,065 basehttp 85976 6135934976 "GET /en/inpatients/admissions/ HTTP/1.1" 500 89036 +WARNING 2025-08-20 19:42:40,080 log 85976 6135934976 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:42:40,080 basehttp 85976 6135934976 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:43:00,194 autoreload 85976 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:43:00,524 autoreload 86138 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:43:01,107 log 86138 6162411520 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 632, in get_context_data + 'total_admissions': self.queryset.count() + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'count' +ERROR 2025-08-20 19:43:01,108 basehttp 86138 6162411520 "GET /en/inpatients/admissions/ HTTP/1.1" 500 88952 +WARNING 2025-08-20 19:43:01,120 log 86138 6162411520 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:43:01,120 basehttp 86138 6162411520 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-20 19:43:02,114 log 86138 6162411520 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 632, in get_context_data + 'total_admissions': self.queryset.count() + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'count' +ERROR 2025-08-20 19:43:02,115 basehttp 86138 6162411520 "GET /en/inpatients/admissions/ HTTP/1.1" 500 88952 +WARNING 2025-08-20 19:43:02,129 log 86138 6162411520 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:43:02,129 basehttp 86138 6162411520 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:43:26,704 autoreload 86138 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:43:27,025 autoreload 86372 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 19:43:27,952 basehttp 86372 6128431104 "GET /en/inpatients/admissions/ HTTP/1.1" 200 160424 +WARNING 2025-08-20 19:43:27,970 log 86372 6128431104 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:43:27,970 basehttp 86372 6128431104 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:43:28,054 basehttp 86372 6128431104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:44:10,621 autoreload 86372 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:44:10,984 autoreload 86686 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 19:44:11,719 basehttp 86686 6127595520 "GET /en/inpatients/admissions/ HTTP/1.1" 200 160426 +WARNING 2025-08-20 19:44:11,738 log 86686 6127595520 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:44:11,738 basehttp 86686 6127595520 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:44:11,783 basehttp 86686 6127595520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:45:11,794 basehttp 86686 6127595520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:45:47,929 autoreload 86686 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:45:48,287 autoreload 87402 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:45:48,595 log 87402 6203420672 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 629, in get_context_data + active_admissions = Admission.objects.filter(tenant=self.request.user.tenant, is_active=True).count() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'is_active' into field. Choices are: acuity_level, admission_datetime, admission_id, admission_notes, admission_source, admission_type, admitting_diagnosis, admitting_physician, admitting_physician_id, advance_directive, alerts, allergies, anticipated_discharge_date, assigned_bed, attending_physician, attending_physician_id, authorization_number, chief_complaint, code_status, consulting_physicians, created_at, created_by, created_by_id, current_bed, current_bed_id, current_ward, current_ward_id, discharge_datetime, discharge_disposition, discharge_planner, discharge_planner_id, discharge_planning_started, discharge_summary, encounters, estimated_length_of_stay, healthcare_proxy, id, insurance_verified, isolation_required, isolation_type, medical_bills, patient, patient_id, priority, secondary_diagnoses, special_needs, status, surgeries, surgical_cases, tenant, tenant_id, transfers, updated_at +ERROR 2025-08-20 19:45:48,597 basehttp 87402 6203420672 "GET /en/inpatients/admissions/ HTTP/1.1" 500 143156 +WARNING 2025-08-20 19:45:48,613 log 87402 6203420672 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:45:48,614 basehttp 87402 6203420672 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:46:25,773 autoreload 87402 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:46:26,097 autoreload 87722 8601149632 Watching for file changes with StatReloader +ERROR 2025-08-20 19:46:27,316 log 87722 6124482560 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 629, in get_context_data + active_admissions = Admission.objects.filter(tenant=self.request.user.tenant, admission__is_active=True).count() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'admission' into field. Choices are: acuity_level, admission_datetime, admission_id, admission_notes, admission_source, admission_type, admitting_diagnosis, admitting_physician, admitting_physician_id, advance_directive, alerts, allergies, anticipated_discharge_date, assigned_bed, attending_physician, attending_physician_id, authorization_number, chief_complaint, code_status, consulting_physicians, created_at, created_by, created_by_id, current_bed, current_bed_id, current_ward, current_ward_id, discharge_datetime, discharge_disposition, discharge_planner, discharge_planner_id, discharge_planning_started, discharge_summary, encounters, estimated_length_of_stay, healthcare_proxy, id, insurance_verified, isolation_required, isolation_type, medical_bills, patient, patient_id, priority, secondary_diagnoses, special_needs, status, surgeries, surgical_cases, tenant, tenant_id, transfers, updated_at +ERROR 2025-08-20 19:46:27,318 basehttp 87722 6124482560 "GET /en/inpatients/admissions/ HTTP/1.1" 500 143360 +WARNING 2025-08-20 19:46:27,329 log 87722 6124482560 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:46:27,329 basehttp 87722 6124482560 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-20 19:46:28,273 log 87722 6124482560 Internal Server Error: /en/inpatients/admissions/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 178, in get + context = self.get_context_data() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 629, in get_context_data + active_admissions = Admission.objects.filter(tenant=self.request.user.tenant, admission__is_active=True).count() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'admission' into field. Choices are: acuity_level, admission_datetime, admission_id, admission_notes, admission_source, admission_type, admitting_diagnosis, admitting_physician, admitting_physician_id, advance_directive, alerts, allergies, anticipated_discharge_date, assigned_bed, attending_physician, attending_physician_id, authorization_number, chief_complaint, code_status, consulting_physicians, created_at, created_by, created_by_id, current_bed, current_bed_id, current_ward, current_ward_id, discharge_datetime, discharge_disposition, discharge_planner, discharge_planner_id, discharge_planning_started, discharge_summary, encounters, estimated_length_of_stay, healthcare_proxy, id, insurance_verified, isolation_required, isolation_type, medical_bills, patient, patient_id, priority, secondary_diagnoses, special_needs, status, surgeries, surgical_cases, tenant, tenant_id, transfers, updated_at +ERROR 2025-08-20 19:46:28,273 basehttp 87722 6124482560 "GET /en/inpatients/admissions/ HTTP/1.1" 500 143360 +WARNING 2025-08-20 19:46:28,290 log 87722 6124482560 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:46:28,290 basehttp 87722 6124482560 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:48:30,669 autoreload 87722 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:48:30,992 autoreload 88664 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 19:48:31,405 basehttp 88664 6137507840 "GET /en/inpatients/admissions/ HTTP/1.1" 200 160428 +WARNING 2025-08-20 19:48:31,426 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:48:31,426 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:48:31,501 basehttp 88664 6137507840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 19:48:53,851 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:48:53,851 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 19:48:54,757 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:48:54,757 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 19:48:55,954 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:48:55,955 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:48:56,244 basehttp 88664 6137507840 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 19:49:00,883 basehttp 88664 6137507840 "GET /en/inpatients/admissions/create/ HTTP/1.1" 200 51178 +WARNING 2025-08-20 19:49:00,904 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:49:00,904 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:49:00,928 basehttp 88664 6137507840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 19:49:04,556 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:49:04,557 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-20 19:49:04,566 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:49:04,566 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:49:26,220 basehttp 88664 6137507840 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 19:49:56,110 basehttp 88664 6137507840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 19:49:56,240 basehttp 88664 6137507840 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 19:50:26,246 basehttp 88664 6137507840 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +ERROR 2025-08-20 19:50:39,849 log 88664 6137507840 Internal Server Error: /en/inpatients/discharge/335/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 2179, in discharge_patient + summary_form = DischargeSummaryForm( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/forms.py", line 324, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'admission' +ERROR 2025-08-20 19:50:39,851 basehttp 88664 6137507840 "GET /en/inpatients/discharge/335/ HTTP/1.1" 500 78436 +WARNING 2025-08-20 19:50:39,870 log 88664 6137507840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:50:39,870 basehttp 88664 6137507840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:54:23,134 autoreload 88664 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 19:54:23,622 autoreload 91187 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 19:54:25,316 basehttp 91187 6164770816 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35327 +WARNING 2025-08-20 19:54:25,334 log 91187 6164770816 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:54:25,334 basehttp 91187 6164770816 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:54:25,372 basehttp 91187 6164770816 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +WARNING 2025-08-20 19:55:10,634 log 91187 6198423552 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:55:10,635 basehttp 91187 6198423552 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:55:10,636 basehttp 91187 6164770816 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +WARNING 2025-08-20 19:55:10,680 log 91187 6164770816 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:55:10,680 basehttp 91187 6164770816 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:55:10,741 basehttp 91187 6181597184 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 19:55:12,803 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35327 +WARNING 2025-08-20 19:55:12,821 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:55:12,821 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:55:12,863 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:56:12,867 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:57:03,985 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35287 +WARNING 2025-08-20 19:57:03,998 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:57:03,998 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:57:04,041 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:57:20,718 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35287 +WARNING 2025-08-20 19:57:20,730 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:57:20,730 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:57:20,774 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:57:29,632 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35302 +WARNING 2025-08-20 19:57:29,644 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:57:29,644 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:57:29,690 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:57:49,977 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35321 +WARNING 2025-08-20 19:57:49,988 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:57:49,988 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:57:50,030 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:58:23,170 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35349 +WARNING 2025-08-20 19:58:23,187 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:58:23,187 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:58:23,223 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:58:51,600 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35359 +WARNING 2025-08-20 19:58:51,612 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 19:58:51,612 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 19:58:51,655 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 19:59:51,680 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 20:00:33,859 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35348 +WARNING 2025-08-20 20:00:33,872 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:00:33,873 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:00:33,914 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 20:01:33,917 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 20:01:35,008 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35348 +WARNING 2025-08-20 20:01:35,023 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:01:35,023 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:01:35,064 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 20:01:48,328 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35344 +WARNING 2025-08-20 20:01:48,340 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:01:48,340 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:01:48,382 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4695 +INFO 2025-08-20 20:02:21,032 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35357 +WARNING 2025-08-20 20:02:21,043 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:02:21,044 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:02:21,085 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:03:21,100 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:03:45,964 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35362 +WARNING 2025-08-20 20:03:45,975 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:03:45,975 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:03:46,009 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:04:06,770 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35336 +WARNING 2025-08-20 20:04:06,782 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:04:06,782 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:04:06,825 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:04:14,420 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35340 +WARNING 2025-08-20 20:04:14,433 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:04:14,433 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:04:14,479 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:05:14,482 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:05:16,712 basehttp 91187 6181597184 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 35374 +WARNING 2025-08-20 20:05:16,725 log 91187 6181597184 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:05:16,725 basehttp 91187 6181597184 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:05:16,766 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:06:16,780 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:07:16,810 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:08:16,818 basehttp 91187 6181597184 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:08:38,370 autoreload 91187 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 20:08:38,769 autoreload 97464 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 20:08:40,030 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +WARNING 2025-08-20 20:08:40,052 log 97464 6201421824 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:08:40,052 basehttp 97464 6201421824 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:08:40,171 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:08:40,289 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 20:08:46,408 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40376 +WARNING 2025-08-20 20:08:46,426 log 97464 6201421824 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 20:08:46,427 basehttp 97464 6201421824 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 20:08:46,466 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:09:46,483 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:10:46,486 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:11:46,482 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:12:46,497 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:13:46,497 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:14:46,497 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:15:46,498 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:16:46,505 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:17:46,503 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:18:46,521 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:19:47,441 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:20:49,451 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 20:26:13,249 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 21:50:40,363 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:12:47,178 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:14:30,871 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:15:30,881 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:16:30,883 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:16:36,227 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:17:06,220 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:17:36,093 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:17:36,211 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:18:06,210 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:18:36,111 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:18:36,219 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:19:06,234 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:19:36,096 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:19:36,206 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2104063 +INFO 2025-08-20 22:19:39,903 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2106667 +INFO 2025-08-20 22:19:40,018 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:19:40,134 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2106667 +INFO 2025-08-20 22:19:52,351 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:19:52,437 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:19:52,553 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:20:22,553 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:20:52,440 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:20:52,551 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:21:22,559 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:21:29,119 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:21:29,212 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:21:29,354 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:21:58,934 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40376 +INFO 2025-08-20 22:21:58,973 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:22:51,615 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40393 +INFO 2025-08-20 22:22:51,643 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:23:27,005 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40376 +INFO 2025-08-20 22:23:27,035 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:24:10,687 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40370 +INFO 2025-08-20 22:24:10,720 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:24:41,401 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40404 +INFO 2025-08-20 22:24:41,439 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:24:59,586 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40404 +INFO 2025-08-20 22:24:59,619 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:25:59,629 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:26:37,906 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40413 +INFO 2025-08-20 22:26:37,934 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:27:12,786 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40408 +INFO 2025-08-20 22:27:12,822 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:27:26,919 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40412 +INFO 2025-08-20 22:27:26,957 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:27:33,051 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40413 +INFO 2025-08-20 22:27:33,091 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:28:33,092 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:29:12,648 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40447 +INFO 2025-08-20 22:29:12,679 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:29:26,959 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40433 +INFO 2025-08-20 22:29:26,986 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:30:27,002 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:31:27,001 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:31:52,094 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40513 +INFO 2025-08-20 22:31:52,129 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:32:42,169 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40510 +INFO 2025-08-20 22:32:42,212 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:33:25,848 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40510 +INFO 2025-08-20 22:33:25,886 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:33:29,579 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:33:38,253 basehttp 97464 6201421824 "GET /en/inpatients/beds/?page=2 HTTP/1.1" 200 2110493 +INFO 2025-08-20 22:33:38,364 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:33:38,482 basehttp 97464 6201421824 "GET /en/inpatients/beds/?page=2 HTTP/1.1" 200 2110493 +INFO 2025-08-20 22:33:42,267 basehttp 97464 6201421824 "GET /en/inpatients/discharge/359/ HTTP/1.1" 302 0 +INFO 2025-08-20 22:33:42,289 basehttp 97464 6201421824 "GET /en/inpatients/admissions/359/ HTTP/1.1" 200 26973 +INFO 2025-08-20 22:33:42,321 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:34:01,489 basehttp 97464 6201421824 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:34:05,161 basehttp 97464 6201421824 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40510 +INFO 2025-08-20 22:34:05,196 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:35:05,205 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:36:05,211 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:37:05,211 basehttp 97464 6201421824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:37:24,557 autoreload 97464 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 22:37:24,989 autoreload 16279 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 22:37:29,067 basehttp 16279 6197145600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:37:29,123 basehttp 16279 6213971968 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109899 +INFO 2025-08-20 22:37:39,593 basehttp 16279 6213971968 "GET /en/inpatients/ HTTP/1.1" 200 42937 +INFO 2025-08-20 22:37:39,634 basehttp 16279 6197145600 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-20 22:37:39,646 basehttp 16279 6213971968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:37:39,672 basehttp 16279 6230798336 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +ERROR 2025-08-20 22:37:44,692 log 16279 6230798336 Internal Server Error: /en/inpatients/transfers/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'reject_transfer' not found. 'reject_transfer' is not a valid view function or pattern name. +ERROR 2025-08-20 22:37:44,694 basehttp 16279 6230798336 "GET /en/inpatients/transfers/ HTTP/1.1" 500 262747 +ERROR 2025-08-20 22:39:46,557 log 16279 6230798336 Internal Server Error: /en/inpatients/transfers/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'execute_transfer' not found. 'execute_transfer' is not a valid view function or pattern name. +ERROR 2025-08-20 22:39:46,558 basehttp 16279 6230798336 "GET /en/inpatients/transfers/ HTTP/1.1" 500 262364 +INFO 2025-08-20 22:40:05,201 basehttp 16279 6230798336 "GET /en/inpatients/transfers/ HTTP/1.1" 200 88653 +INFO 2025-08-20 22:40:05,235 basehttp 16279 6230798336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 22:40:17,425 log 16279 6230798336 Forbidden (CSRF token missing.): /en/inpatients/transfer/95/approve/ +WARNING 2025-08-20 22:40:17,425 basehttp 16279 6230798336 "POST /en/inpatients/transfer/95/approve/ HTTP/1.1" 403 2491 +WARNING 2025-08-20 22:40:20,753 log 16279 6230798336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 22:40:20,754 basehttp 16279 6230798336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 22:41:05,248 basehttp 16279 6230798336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:41:54,438 autoreload 16279 8601149632 /Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py changed, reloading. +INFO 2025-08-20 22:41:54,779 autoreload 18321 8601149632 Watching for file changes with StatReloader +INFO 2025-08-20 22:41:56,807 basehttp 18321 6138425344 "GET /en/inpatients/transfers/ HTTP/1.1" 200 88653 +WARNING 2025-08-20 22:41:56,824 log 18321 6138425344 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 22:41:56,824 basehttp 18321 6138425344 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 22:41:56,916 basehttp 18321 6138425344 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +WARNING 2025-08-20 22:42:00,549 log 18321 6138425344 Forbidden (CSRF token missing.): /en/inpatients/transfer/95/approve/ +WARNING 2025-08-20 22:42:00,549 basehttp 18321 6138425344 "POST /en/inpatients/transfer/95/approve/ HTTP/1.1" 403 2491 +INFO 2025-08-20 22:42:56,930 basehttp 18321 6138425344 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:42:58,155 basehttp 18321 6138425344 "GET /en/inpatients/transfers/ HTTP/1.1" 200 88653 +WARNING 2025-08-20 22:42:58,172 log 18321 6138425344 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 22:42:58,172 basehttp 18321 6138425344 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 22:42:58,271 basehttp 18321 6138425344 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +INFO 2025-08-20 22:43:55,396 basehttp 18321 6138425344 "GET /en/inpatients/transfers/ HTTP/1.1" 200 87470 +WARNING 2025-08-20 22:43:55,410 log 18321 6138425344 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 22:43:55,410 basehttp 18321 6138425344 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 22:43:55,508 basehttp 18321 6138425344 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4700 +ERROR 2025-08-20 22:43:57,278 log 18321 6138425344 Internal Server Error: /en/inpatients/transfer/77/approve/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/inpatients/views.py", line 1033, in approve_transfer + return render(request, 'inpatients/partials/approve_transfer_form.html', context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/shortcuts.py", line 25, in render + content = loader.render_to_string(template_name, context, request, using=using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 62, in render_to_string + return template.render(context, request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'reject_transfer' not found. 'reject_transfer' is not a valid view function or pattern name. +ERROR 2025-08-20 22:43:57,280 basehttp 18321 6138425344 "GET /en/inpatients/transfer/77/approve/ HTTP/1.1" 500 129700 +WARNING 2025-08-20 22:43:57,300 log 18321 6138425344 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 22:43:57,300 basehttp 18321 6138425344 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-20 22:44:50,623 basehttp 18321 6138425344 "GET /en/inpatients/transfer/77/approve/ HTTP/1.1" 200 9421 +WARNING 2025-08-20 22:44:50,644 log 18321 6138425344 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-20 22:44:50,644 basehttp 18321 6138425344 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-21 13:30:43,818 autoreload 3283 8601149632 Watching for file changes with StatReloader +INFO 2025-08-21 13:30:47,270 basehttp 3283 6198046720 "GET / HTTP/1.1" 302 0 +INFO 2025-08-21 13:30:47,319 basehttp 3283 6214873088 "GET /en/ HTTP/1.1" 200 47239 +INFO 2025-08-21 13:30:47,376 basehttp 3283 6214873088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:30:47,380 basehttp 3283 6248525824 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-21 13:30:47,382 basehttp 3283 6231699456 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 13:30:47,383 basehttp 3283 6198046720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 13:30:55,954 basehttp 3283 6198046720 "GET /en/admin HTTP/1.1" 301 0 +INFO 2025-08-21 13:30:56,035 basehttp 3283 6231699456 "GET /en/admin/ HTTP/1.1" 200 88075 +INFO 2025-08-21 13:30:56,043 basehttp 3283 6231699456 "GET /static/admin/css/dashboard.css HTTP/1.1" 200 441 +INFO 2025-08-21 13:30:59,577 basehttp 3283 6231699456 "GET /en/inpatients/ HTTP/1.1" 200 41712 +INFO 2025-08-21 13:30:59,636 basehttp 3283 6231699456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:30:59,638 basehttp 3283 6248525824 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-21 13:30:59,658 basehttp 3283 6214873088 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-08-21 13:31:05,147 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 13:31:05,261 basehttp 3283 6214873088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:31:05,369 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 13:31:35,391 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 13:32:05,276 basehttp 3283 6214873088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:32:05,381 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 13:32:35,396 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 13:32:39,877 basehttp 3283 6214873088 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40510 +INFO 2025-08-21 13:32:39,909 basehttp 3283 6214873088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:33:40,092 basehttp 3283 6214873088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:34:41,100 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:39:01,561 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:40:02,560 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 13:41:03,557 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:03:05,832 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:07:08,018 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:08:09,011 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:09:11,017 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:10:43,221 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:11:44,012 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:12:46,012 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:13:53,442 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:14:53,444 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:15:53,445 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:15:59,988 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:24:07,266 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:24:37,173 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:24:37,242 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:25:07,224 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:25:37,167 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:25:37,232 basehttp 3283 6214873088 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:41:08,972 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:41:39,821 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:41:45,888 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 14:57:47,024 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 14:57:52,097 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 15:14:13,411 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:14:17,437 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 15:15:14,365 basehttp 3283 6198046720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:15:17,436 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 15:22:55,957 basehttp 3283 6214873088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:22:56,025 basehttp 3283 6198046720 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109881 +INFO 2025-08-21 15:53:21,003 autoreload 18499 8466948288 Watching for file changes with StatReloader +INFO 2025-08-21 15:53:26,252 basehttp 18499 6189674496 "GET / HTTP/1.1" 302 0 +INFO 2025-08-21 15:53:26,312 basehttp 18499 6206500864 "GET /en/ HTTP/1.1" 200 47250 +INFO 2025-08-21 15:53:26,363 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:53:26,364 basehttp 18499 6240153600 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-21 15:53:26,366 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:53:26,367 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +WARNING 2025-08-21 15:53:26,380 log 18499 6189674496 Not Found: /favicon.ico +WARNING 2025-08-21 15:53:26,381 basehttp 18499 6189674496 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-21 15:53:56,413 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:54:26,420 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:54:26,420 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:54:27,408 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:54:58,416 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:55:27,423 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:55:27,423 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:55:29,413 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:56:00,414 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:56:28,422 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:56:28,423 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:56:31,399 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:57:12,402 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:57:29,421 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:57:29,422 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:58:12,411 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:58:30,409 basehttp 18499 6223327232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 15:58:30,409 basehttp 18499 6189674496 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:59:12,416 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 15:59:31,423 basehttp 18499 6189674496 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 15:59:31,423 basehttp 18499 6223327232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:00:12,409 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:01:12,433 basehttp 18499 6206500864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:01:12,433 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:01:12,435 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:02:12,419 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:02:12,420 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:03:12,421 basehttp 18499 6189674496 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:03:12,423 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:04:12,427 basehttp 18499 6223327232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:04:12,429 basehttp 18499 6206500864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:04:12,430 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:05:12,399 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:06:12,429 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:06:12,431 basehttp 18499 6206500864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:06:12,434 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:07:12,408 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:08:12,433 basehttp 18499 6223327232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:08:12,434 basehttp 18499 6206500864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:08:12,435 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:09:12,435 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:09:12,437 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:10:12,419 basehttp 18499 6189674496 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:10:12,420 basehttp 18499 6206500864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:11:12,432 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:11:12,433 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:11:12,434 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:12:12,409 basehttp 18499 6189674496 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:13:12,434 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:13:12,434 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:13:12,436 basehttp 18499 6206500864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:14:12,431 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:14:12,431 basehttp 18499 6223327232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:14:12,433 basehttp 18499 6206500864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:15:12,503 basehttp 18499 6206500864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:16:12,525 basehttp 18499 6189674496 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-21 16:16:12,525 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:16:12,527 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-21 16:16:43,488 basehttp 18499 6223327232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +WARNING 2025-08-21 16:16:48,492 log 18499 6223327232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-21 16:16:48,492 basehttp 18499 6223327232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-21 16:16:57,675 basehttp 18499 6223327232 "GET /en/inpatients/ HTTP/1.1" 200 41712 +WARNING 2025-08-21 16:16:57,689 log 18499 6223327232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-21 16:16:57,689 basehttp 18499 6223327232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-21 16:16:57,782 basehttp 18499 6223327232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:16:57,782 basehttp 18499 6206500864 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-21 16:16:57,802 basehttp 18499 6189674496 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-08-21 16:17:27,769 basehttp 18499 6189674496 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-21 16:17:57,800 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:17:57,802 basehttp 18499 6223327232 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-21 16:17:57,825 basehttp 18499 6206500864 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-08-21 16:18:27,785 basehttp 18499 6206500864 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-21 16:18:42,188 basehttp 18499 6206500864 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109882 +INFO 2025-08-21 16:18:42,334 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:18:42,456 basehttp 18499 6206500864 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109882 +INFO 2025-08-21 16:18:57,512 basehttp 18499 6206500864 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40510 +INFO 2025-08-21 16:18:57,548 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:19:57,563 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:20:57,564 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:21:57,570 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:22:57,569 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:23:57,580 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:24:57,586 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:25:57,580 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:26:57,593 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:27:57,597 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:28:57,601 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:29:58,509 basehttp 18499 6206500864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:31:00,488 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:32:12,504 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:34:12,495 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:36:12,496 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:37:12,498 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:39:12,493 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:41:12,493 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:42:12,506 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:44:12,495 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:45:12,534 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:47:12,550 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:48:12,553 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:50:12,557 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:51:12,557 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:53:12,554 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:54:12,561 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:56:12,553 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:57:12,562 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 16:58:12,566 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:00:12,573 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:01:12,581 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:03:12,580 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:04:12,583 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:05:12,582 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:07:12,586 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:09:12,584 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:10:12,592 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:12:12,604 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:13:12,595 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:15:12,515 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:16:12,520 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:18:12,527 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:19:12,522 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:21:12,513 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:22:12,532 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:23:12,530 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:25:12,523 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:27:12,524 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:28:12,527 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:30:12,539 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:31:12,552 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:33:12,557 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:35:12,560 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:36:12,552 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:38:12,565 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:40:12,554 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:42:12,558 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:44:12,561 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:45:12,555 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:46:12,465 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:48:12,464 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:49:12,473 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:51:12,470 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:52:12,463 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:54:25,216 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:55:25,225 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:57:25,225 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 17:58:25,227 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:00:25,217 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:01:25,226 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:03:25,220 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:04:26,213 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:05:28,218 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:07:25,219 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:08:25,223 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:10:25,219 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:11:25,485 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:13:25,483 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:15:25,319 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:17:25,329 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:19:25,196 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:21:25,275 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:23:25,227 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:25:25,283 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:27:25,192 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:29:25,190 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:31:25,222 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:32:26,453 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:34:25,226 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:36:25,233 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:38:25,242 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:40:25,399 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:42:25,284 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:44:25,272 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 18:58:03,425 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 20:34:17,794 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 20:54:37,752 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 20:56:37,809 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 20:58:37,794 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 20:59:37,832 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:01:37,792 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:03:37,787 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:05:37,796 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:06:37,795 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:08:37,802 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:10:37,797 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:12:37,793 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:14:37,783 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:15:37,784 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:17:37,774 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:18:37,790 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:20:37,885 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:21:37,897 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:23:37,884 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:25:37,894 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:27:37,883 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:29:37,895 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:31:37,881 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:32:37,881 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:34:37,882 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:35:37,873 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:36:37,879 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:38:37,872 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:39:37,875 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:41:37,868 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:43:37,867 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:44:37,871 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:45:37,871 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:47:37,870 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:48:37,866 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:50:37,867 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:51:37,945 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:53:37,953 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:54:37,949 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:56:37,943 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:57:37,951 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:58:37,945 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 21:59:37,950 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:01:37,945 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:02:37,954 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:04:37,949 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:05:37,947 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:07:37,955 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:08:37,957 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:10:37,948 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:11:37,951 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:13:37,956 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:14:37,954 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:16:37,951 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:17:37,957 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:18:37,955 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:20:37,955 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:21:37,956 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:23:37,962 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:24:37,961 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:26:37,964 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:27:37,960 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:29:37,962 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:30:37,964 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:32:37,964 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:33:37,968 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:35:37,963 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:37:37,969 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:39:37,963 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:40:37,965 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:42:37,967 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:43:37,970 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:45:37,965 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:46:37,963 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:47:37,969 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:49:37,964 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:50:37,968 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4675 +INFO 2025-08-21 22:52:37,965 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 22:53:37,977 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 22:54:37,971 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 22:56:37,968 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 22:57:37,967 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 22:59:37,984 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:01:37,969 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:02:37,970 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:04:37,972 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:05:37,970 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:07:37,968 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:08:37,942 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:10:37,939 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:11:37,949 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:13:37,936 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:14:37,943 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:16:37,938 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:17:37,944 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:19:37,936 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:20:37,950 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:22:37,939 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:23:37,772 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:25:37,769 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:27:37,764 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:28:37,769 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:30:37,761 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:31:37,756 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:32:37,758 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:34:37,753 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:35:37,757 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:37:37,749 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:38:37,803 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:39:37,818 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:41:37,811 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:42:37,818 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:44:37,811 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:45:37,816 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:47:37,811 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:48:37,806 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:49:37,804 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:51:37,802 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-21 23:52:37,808 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-21 23:53:37,803 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-21 23:55:37,878 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-21 23:56:37,878 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-21 23:58:37,885 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-21 23:59:37,880 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-22 00:01:37,869 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-22 00:02:37,880 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-22 00:03:37,882 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-22 00:05:37,876 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-22 00:06:37,876 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +INFO 2025-08-22 00:07:37,881 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4670 +WARNING 2025-08-24 11:37:55,117 log 18499 6189674496 Not Found: /favicon.ico +WARNING 2025-08-24 11:37:55,117 basehttp 18499 6189674496 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-24 11:38:47,947 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:38:56,928 basehttp 18499 6189674496 "GET /en/inpatients/admissions/create/ HTTP/1.1" 200 51178 +INFO 2025-08-24 11:38:56,936 basehttp 18499 6189674496 "GET /static/js/app.min.js HTTP/1.1" 304 0 +INFO 2025-08-24 11:38:56,965 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:39:17,952 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:39:47,814 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:39:47,929 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:40:17,950 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:40:47,811 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:40:47,922 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:41:17,958 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:41:47,820 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:41:47,921 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:42:17,949 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:42:25,920 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:42:26,014 basehttp 18499 6189674496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:42:26,131 basehttp 18499 6189674496 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109911 +INFO 2025-08-24 11:42:39,816 basehttp 18499 6189674496 "GET /en/accounts/login/ HTTP/1.1" 302 0 +INFO 2025-08-24 11:42:39,824 basehttp 18499 6189674496 "GET /accounts/profile/ HTTP/1.1" 302 0 +ERROR 2025-08-24 11:42:39,856 log 18499 6206500864 Internal Server Error: /en/accounts/profile/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'upload_avatar' not found. 'upload_avatar' is not a valid view function or pattern name. +ERROR 2025-08-24 11:42:39,859 basehttp 18499 6206500864 "GET /en/accounts/profile/ HTTP/1.1" 500 167228 +INFO 2025-08-24 11:53:14,673 autoreload 18499 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/accounts/models.py changed, reloading. +INFO 2025-08-24 11:53:15,183 autoreload 49588 8466948288 Watching for file changes with StatReloader +INFO 2025-08-24 11:53:17,415 basehttp 49588 6123925504 "GET /en/accounts/profile/ HTTP/1.1" 200 31087 +INFO 2025-08-24 11:53:17,463 basehttp 49588 6123925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:53:36,267 basehttp 49588 6123925504 "GET /en/accounts/htmx/two-factor-setup/ HTTP/1.1" 200 5963 +ERROR 2025-08-24 11:53:52,738 log 49588 6123925504 Internal Server Error: /en/accounts/htmx/profile-update/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/accounts/views.py", line 1038, in user_profile_update + user.timezone = request.POST.get('timezone', user.timezone) + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/functional.py", line 253, in inner + return func(_wrapped, *args) + ^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'User' object has no attribute 'timezone' +ERROR 2025-08-24 11:53:52,740 basehttp 49588 6123925504 "POST /en/accounts/htmx/profile-update/ HTTP/1.1" 500 78506 +INFO 2025-08-24 11:54:17,475 basehttp 49588 6123925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:54:43,845 basehttp 49588 6123925504 "GET /en/billing/bills/create/ HTTP/1.1" 200 109253 +INFO 2025-08-24 11:54:43,883 basehttp 49588 6123925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:54:50,088 basehttp 49588 6123925504 "GET /en/ HTTP/1.1" 200 47227 +INFO 2025-08-24 11:54:50,145 basehttp 49588 6123925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:54:50,149 basehttp 49588 13035925504 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 11:54:50,151 basehttp 49588 6157578240 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 11:54:50,152 basehttp 49588 6140751872 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:55:06,523 basehttp 49588 6140751872 "GET /en/laboratory/orders/create/ HTTP/1.1" 200 36888 +INFO 2025-08-24 11:55:06,555 basehttp 49588 6140751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:55:40,566 basehttp 49588 6140751872 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:55:43,752 basehttp 49588 6140751872 "GET /en/appointments/create/ HTTP/1.1" 200 36449 +INFO 2025-08-24 11:55:43,783 basehttp 49588 6140751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:55:50,151 basehttp 49588 6140751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:55:50,151 basehttp 49588 6157578240 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 11:56:10,571 basehttp 49588 6140751872 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:56:17,196 basehttp 49588 6140751872 "GET /en/ HTTP/1.1" 200 47227 +INFO 2025-08-24 11:56:17,262 basehttp 49588 6140751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:56:17,262 basehttp 49588 6123925504 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 11:56:17,263 basehttp 49588 13035925504 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 11:56:17,265 basehttp 49588 6157578240 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:56:47,243 basehttp 49588 6157578240 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:57:17,260 basehttp 49588 6157578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:57:17,260 basehttp 49588 13035925504 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 11:57:17,261 basehttp 49588 6123925504 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:57:47,251 basehttp 49588 6123925504 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:58:17,275 basehttp 49588 6123925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:58:17,276 basehttp 49588 6157578240 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 11:58:17,278 basehttp 49588 13035925504 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 11:58:24,045 basehttp 49588 13035925504 "GET /en/audit-log/ HTTP/1.1" 200 228027 +INFO 2025-08-24 11:58:24,086 basehttp 49588 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 11:59:00,571 log 49588 13035925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 11:59:00,571 basehttp 49588 13035925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 11:59:08,659 basehttp 49588 13035925504 "GET /en/ HTTP/1.1" 200 47227 +WARNING 2025-08-24 11:59:08,678 log 49588 13035925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 11:59:08,678 basehttp 49588 13035925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 11:59:08,796 basehttp 49588 6157578240 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 11:59:08,797 basehttp 49588 6140751872 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 11:59:08,797 basehttp 49588 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 11:59:08,799 basehttp 49588 6123925504 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +WARNING 2025-08-24 11:59:21,187 log 49588 6123925504 Not Found: /calendar +WARNING 2025-08-24 11:59:21,187 basehttp 49588 6123925504 "GET /calendar HTTP/1.1" 404 2548 +WARNING 2025-08-24 11:59:21,209 log 49588 6123925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 11:59:21,209 basehttp 49588 6123925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 11:59:23,950 log 49588 6123925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 11:59:23,951 basehttp 49588 6123925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 11:59:23,961 log 49588 6123925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 11:59:23,961 basehttp 49588 6123925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 11:59:28,121 basehttp 49588 6123925504 "GET /en/patients/register/ HTTP/1.1" 200 27698 +WARNING 2025-08-24 11:59:28,139 log 49588 6123925504 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 11:59:28,139 basehttp 49588 6123925504 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 11:59:28,232 basehttp 49588 6123925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 diff --git a/templates/inpatients/admissions/admission_list.html b/templates/inpatients/admissions/admission_list.html index 4345f80c..bd2b9d77 100644 --- a/templates/inpatients/admissions/admission_list.html +++ b/templates/inpatients/admissions/admission_list.html @@ -284,7 +284,7 @@ {% elif admission.admission_type == 'DIRECT' %}red {% else %}secondary {% endif %}"> - {{ admission.admission_type }} + {{ admission.get_admission_type_display }} diff --git a/templates/inpatients/beds/bed_management.html b/templates/inpatients/beds/bed_management.html index ca183a74..63f983a7 100644 --- a/templates/inpatients/beds/bed_management.html +++ b/templates/inpatients/beds/bed_management.html @@ -50,7 +50,7 @@ color: #856404; } .bed-out_of_order { -background-color: #b6b4b4; +background-color: #c5c5c5; color: #434242; } @@ -437,27 +437,24 @@ color: #434242; - - - - - + + - + + {% endblock %} {% block js %} diff --git a/templates/inpatients/discharges/discharge_planning.html b/templates/inpatients/discharges/discharge_planning.html index 94cc0ef9..1b987f22 100644 --- a/templates/inpatients/discharges/discharge_planning.html +++ b/templates/inpatients/discharges/discharge_planning.html @@ -176,17 +176,20 @@
-
Patient: Robert Davis
-

MRN: MRN456789 | Age: 68 years | Gender: Male

-

Admission Date: January 15, 2024 | Length of Stay: 5 days

-

Primary Diagnosis: Acute Myocardial Infarction | Attending: Dr. Johnson

+
Patient: {{ admission.patient.get_full_name }}
+

MRN: {{ admission.patient.mrn }} | Age: {{ admission.patient.age }} | Gender: + {{ admission.patient.get_gender_display }}

+

Admission Date: {{ admission.admission_datetime }} | Length of Stay: {{ admission.length_of_stay }} Days

+

Admitting: {{ admission.admitting_physician.get_full_name }} | Attending: + {{ admission.attending_physician.get_full_name }}

+

Primary Diagnosis: {{ admission.admitting_diagnosis }}

75% Complete
-

Expected Discharge: January 22, 2024

+

Expected Discharge: {{ admission.anticipated_discharge_date}}

diff --git a/templates/inpatients/maintenance_bed.html b/templates/inpatients/maintenance_bed.html index 1f8d2bf1..a9f9c89a 100644 --- a/templates/inpatients/maintenance_bed.html +++ b/templates/inpatients/maintenance_bed.html @@ -4,8 +4,8 @@ {% block title %}Bed Maintenance Management{% endblock %} {% block extra_css %} - - + +