diff --git a/core/templatetags/__init__.py b/core/templatetags/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/core/templatetags/__pycache__/__init__.cpython-312.pyc b/core/templatetags/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..86bb6d1e Binary files /dev/null and b/core/templatetags/__pycache__/__init__.cpython-312.pyc differ diff --git a/core/templatetags/__pycache__/custom_filters.cpython-312.pyc b/core/templatetags/__pycache__/custom_filters.cpython-312.pyc new file mode 100644 index 00000000..35fcc78a Binary files /dev/null and b/core/templatetags/__pycache__/custom_filters.cpython-312.pyc differ diff --git a/core/templatetags/custom_filters.py b/core/templatetags/custom_filters.py new file mode 100644 index 00000000..6a7871a0 --- /dev/null +++ b/core/templatetags/custom_filters.py @@ -0,0 +1,322 @@ +from django import template +from django.db.models import Sum, F +from decimal import Decimal +import operator +from functools import reduce + + +register = template.Library() + +@register.filter +def mul(value, arg): + return value * arg + + +@register.filter +def div(value, arg): + return value / arg if arg != 0 else 0 + + +@register.filter(name="add_class") +def add_class(field, css_class): + return field.as_widget(attrs={"class": css_class}) + + +@register.filter +def sum_values(queryset, field_names): + """ + Calculate the sum of multiplied values from specified fields. + + Usage: {{ category_group.list|sum_values:"current_stock,item.current_cost" }} + + This will multiply current_stock * item.current_cost for each object + and return the sum of all results. + + Args: + queryset: List or queryset of objects + field_names: Comma-separated string of field names to multiply + + Returns: + Decimal: Sum of all multiplied values + """ + if not queryset or not field_names: + return Decimal('0.00') + + try: + fields = [field.strip() for field in field_names.split(',')] + total = Decimal('0.00') + + for obj in queryset: + values = [] + for field_path in fields: + # Handle nested field access (e.g., "item.current_cost") + value = obj + for field_part in field_path.split('.'): + if hasattr(value, field_part): + value = getattr(value, field_part) + else: + value = 0 + break + + # Convert to Decimal for precise calculations + if value is None: + value = 0 + values.append(Decimal(str(value))) + + # Multiply all values together + if values: + product = reduce(operator.mul, values, Decimal('1')) + total += product + + return total + + except (ValueError, TypeError, AttributeError): + return Decimal('0.00') + + +@register.filter +def multiply(value, arg): + """ + Multiply two values. + + Usage: {{ inventory.current_stock|multiply:inventory.item.current_cost }} + + Args: + value: First value to multiply + arg: Second value to multiply + + Returns: + Decimal: Product of the two values + """ + try: + if value is None or arg is None: + return Decimal('0.00') + return Decimal(str(value)) * Decimal(str(arg)) + except (ValueError, TypeError): + return Decimal('0.00') + + +@register.filter +def divide(value, arg): + """ + Divide two values. + + Usage: {{ inventory.current_stock|divide:inventory.item.reorder_point }} + + Args: + value: Dividend + arg: Divisor + + Returns: + Decimal: Result of division, or 0 if divisor is 0 + """ + try: + if value is None or arg is None or Decimal(str(arg)) == 0: + return Decimal('0.00') + return Decimal(str(value)) / Decimal(str(arg)) + except (ValueError, TypeError, ZeroDivisionError): + return Decimal('0.00') + + +@register.filter +def percentage(value, total): + """ + Calculate percentage of value relative to total. + + Usage: {{ current_stock|percentage:max_stock }} + + Args: + value: Current value + total: Total value (100%) + + Returns: + Decimal: Percentage (0-100) + """ + try: + if value is None or total is None or Decimal(str(total)) == 0: + return Decimal('0.00') + return (Decimal(str(value)) / Decimal(str(total))) * 100 + except (ValueError, TypeError, ZeroDivisionError): + return Decimal('0.00') + + + +@register.filter +def currency_format(value, currency='SAR'): + """ + Format value as currency. + + Usage: {{ total_value|currency_format:"SAR" }} + + Args: + value: Numeric value to format + currency: Currency symbol/code + + Returns: + str: Formatted currency string + """ + try: + if value is None: + value = 0 + formatted_value = "{:,.2f}".format(float(value)) + return f"{currency} {formatted_value}" + except (ValueError, TypeError): + return f"{currency} 0.00" + + +@register.filter +def sum_field(queryset, field_name): + """ + Sum a specific field from a queryset. + + Usage: {{ inventory_items|sum_field:"current_stock" }} + + Args: + queryset: List or queryset of objects + field_name: Name of the field to sum + + Returns: + Decimal: Sum of the field values + """ + if not queryset or not field_name: + return Decimal('0.00') + + try: + total = Decimal('0.00') + for obj in queryset: + # Handle nested field access + value = obj + for field_part in field_name.split('.'): + if hasattr(value, field_part): + value = getattr(value, field_part) + else: + value = 0 + break + + if value is not None: + total += Decimal(str(value)) + + return total + + except (ValueError, TypeError, AttributeError): + return Decimal('0.00') + + +@register.filter +def count_by_condition(queryset, condition): + """ + Count objects that meet a specific condition. + + Usage: {{ inventory_items|count_by_condition:"current_stock__lte=reorder_point" }} + + Args: + queryset: List or queryset of objects + condition: Condition string to evaluate + + Returns: + int: Count of objects meeting the condition + """ + if not queryset: + return 0 + + try: + count = 0 + for obj in queryset: + # Simple condition checking for stock levels + if condition == 'low_stock': + if hasattr(obj, 'current_stock') and hasattr(obj, 'item'): + if obj.current_stock <= getattr(obj.item, 'reorder_point', 0): + count += 1 + elif condition == 'out_of_stock': + if hasattr(obj, 'current_stock'): + if obj.current_stock <= 0: + count += 1 + elif condition == 'high_stock': + if hasattr(obj, 'current_stock') and hasattr(obj, 'item'): + reorder_point = getattr(obj.item, 'reorder_point', 0) + if obj.current_stock > reorder_point * 2: + count += 1 + + return count + + except (ValueError, TypeError, AttributeError): + return 0 + + +@register.filter +def get_item(dictionary, key): + """ + Get item from dictionary by key. + + Usage: {{ my_dict|get_item:key_variable }} + + Args: + dictionary: Dictionary to access + key: Key to look up + + Returns: + Any: Value from dictionary or None + """ + if isinstance(dictionary, dict): + return dictionary.get(key) + return None + + +@register.filter +def format_number(value, decimal_places=2): + """ + Format number with thousand separators. + + Usage: {{ large_number|format_number:0 }} + + Args: + value: Number to format + decimal_places: Number of decimal places + + Returns: + str: Formatted number string + """ + try: + if value is None: + return "0" + + if decimal_places == 0: + return "{:,}".format(int(float(value))) + else: + format_str = "{:,.{}f}".format(decimal_places) + return format_str.format(float(value)) + + except (ValueError, TypeError): + return "0" + + +@register.simple_tag +def calculate_stock_value(inventory_items): + """ + Calculate total stock value for a list of inventory items. + + Usage: {% calculate_stock_value inventory_items as total_value %} + + Args: + inventory_items: List of inventory objects + + Returns: + Decimal: Total stock value + """ + if not inventory_items: + return Decimal('0.00') + + try: + total = Decimal('0.00') + for item in inventory_items: + if hasattr(item, 'current_stock') and hasattr(item, 'item'): + stock = Decimal(str(item.current_stock or 0)) + cost = Decimal(str(getattr(item.item, 'current_cost', 0) or 0)) + total += stock * cost + + return total + + except (ValueError, TypeError, AttributeError): + return Decimal('0.00') + + diff --git a/db.sqlite3 b/db.sqlite3 index 00a9c5ea..2ade315b 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/emr/__pycache__/urls.cpython-312.pyc b/emr/__pycache__/urls.cpython-312.pyc index 64a49b08..1948e3f3 100644 Binary files a/emr/__pycache__/urls.cpython-312.pyc and b/emr/__pycache__/urls.cpython-312.pyc differ diff --git a/emr/__pycache__/views.cpython-312.pyc b/emr/__pycache__/views.cpython-312.pyc index 6fb887b8..31e65dd8 100644 Binary files a/emr/__pycache__/views.cpython-312.pyc and b/emr/__pycache__/views.cpython-312.pyc differ diff --git a/emr/urls.py b/emr/urls.py index e242381c..71c27d78 100644 --- a/emr/urls.py +++ b/emr/urls.py @@ -37,6 +37,7 @@ urlpatterns = [ path('patient//problem/add/', views.add_problem, name='add_problem'), path('encounter//status/', views.update_encounter_status, name='update_encounter_status'), path('note//sign/', views.sign_note, name='sign_note'), + path('problem//resolve/', views.resolve_problem, name='resolve_problem'), # API endpoints # path('api/', include('emr.api.urls')), diff --git a/emr/views.py b/emr/views.py index b008d22a..5ac0c0ad 100644 --- a/emr/views.py +++ b/emr/views.py @@ -459,7 +459,7 @@ class ClinicalNoteDeleteView( SuccessMessageMixin, DeleteView ): model = ClinicalNote - template_name = 'emr/clinical_note_confirm_delete.html' + template_name = 'emr/clinical_notes/clinical_note_confirm_delete.html' success_url = reverse_lazy('emr:clinical_note_list') success_message = _('Clinical note deleted successfully.') @@ -1497,20 +1497,20 @@ def get_status_class(status): # return redirect('emr:encounter_detail', pk=pk) # # -# @login_required -# def resolve_problem(request, pk): -# prob = get_object_or_404(ProblemList, pk=pk, patient__tenant=request.user.tenant) -# if prob.status == 'ACTIVE': -# prob.status = 'RESOLVED'; prob.save() -# AuditLogEntry.objects.create( -# tenant=request.user.tenant, user=request.user, -# action='UPDATE', model_name='ProblemList', -# object_id=str(prob.pk), changes={'status': 'Problem resolved'} -# ) -# messages.success(request, _('Problem resolved.')) -# else: -# messages.error(request, _('Only active problems can be resolved.')) -# return redirect('emr:problem_detail', pk=pk) +@login_required +def resolve_problem(request, pk): + prob = get_object_or_404(ProblemList, pk=pk, patient__tenant=request.user.tenant) + if prob.status == 'ACTIVE': + prob.status = 'RESOLVED'; prob.save() + AuditLogEntry.objects.create( + tenant=request.user.tenant, user=request.user, + action='UPDATE', model_name='ProblemList', + object_id=str(prob.pk), changes={'status': 'Problem resolved'} + ) + messages.success(request, _('Problem resolved.')) + else: + messages.error(request, _('Only active problems can be resolved.')) + return redirect('emr:problem_detail', pk=pk) # # # @login_required diff --git a/hr/__pycache__/views.cpython-312.pyc b/hr/__pycache__/views.cpython-312.pyc index d3ae511c..65d387e8 100644 Binary files a/hr/__pycache__/views.cpython-312.pyc and b/hr/__pycache__/views.cpython-312.pyc differ diff --git a/hr/views.py b/hr/views.py index 982b9b71..ae42ae33 100644 --- a/hr/views.py +++ b/hr/views.py @@ -278,9 +278,7 @@ class DepartmentListView(LoginRequiredMixin, ListView): Q(description__icontains=search) ) - return queryset.annotate( - employee_count=Count('employees') - ).order_by('name') + return queryset class DepartmentDetailView(LoginRequiredMixin, DetailView): diff --git a/integration/__pycache__/views.cpython-312.pyc b/integration/__pycache__/views.cpython-312.pyc index 80cc5f69..1c49f833 100644 Binary files a/integration/__pycache__/views.cpython-312.pyc and b/integration/__pycache__/views.cpython-312.pyc differ diff --git a/integration/management/__init__.py b/integration/management/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/integration/management/__pycache__/__init__.cpython-312.pyc b/integration/management/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..adb5e4e6 Binary files /dev/null and b/integration/management/__pycache__/__init__.cpython-312.pyc differ diff --git a/integration/management/commands/__init__.py b/integration/management/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/integration/management/commands/__pycache__/__init__.cpython-312.pyc b/integration/management/commands/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..b52b3432 Binary files /dev/null and b/integration/management/commands/__pycache__/__init__.cpython-312.pyc differ diff --git a/integration/management/commands/__pycache__/integration_data.cpython-312.pyc b/integration/management/commands/__pycache__/integration_data.cpython-312.pyc new file mode 100644 index 00000000..0a4ac2da Binary files /dev/null and b/integration/management/commands/__pycache__/integration_data.cpython-312.pyc differ diff --git a/integration/management/commands/integration_data.py b/integration/management/commands/integration_data.py new file mode 100644 index 00000000..b3119de4 --- /dev/null +++ b/integration/management/commands/integration_data.py @@ -0,0 +1,319 @@ +# integration/management/commands/generate_integration_data.py + +import random +import uuid +from datetime import datetime, timedelta + +from django.core.management.base import BaseCommand +from django.utils import timezone +from django.contrib.auth import get_user_model + +from faker import Faker + +from integration.models import ( + ExternalSystem, IntegrationEndpoint, + DataMapping, IntegrationExecution, + WebhookEndpoint, WebhookExecution, + IntegrationLog +) +from core.models import Tenant + +User = get_user_model() +fake = Faker('en_US') + + +class Command(BaseCommand): + help = "Generate sample data for the integration app" + + # ------------------------------------------------------------------ + # Utility helpers + # ------------------------------------------------------------------ + @staticmethod + def random_choice(field, exclude=None): + """Return a random value from a Django field’s choices.""" + choices = field.choices + if exclude: + choices = [c for c in choices if c[0] not in exclude] + return random.choice(choices)[0] + + @staticmethod + def random_bool(chance=0.5): + return random.random() < chance + + # ------------------------------------------------------------------ + # Main entry point + # ------------------------------------------------------------------ + def handle(self, *args, **options): + tenants = Tenant.objects.all() + if not tenants: + self.stdout.write(self.style.ERROR("No tenants found. Create tenants before generating data.")) + return + + for tenant in tenants: + self.generate_external_systems(tenant) + self.generate_webhooks(tenant) + + self.stdout.write(self.style.SUCCESS("Integration data generation complete.")) + + # ------------------------------------------------------------------ + # External system + endpoints + # ------------------------------------------------------------------ + def generate_external_systems(self, tenant, count=5): + for _ in range(count): + system = ExternalSystem.objects.create( + tenant=tenant, + name=fake.company() + " " + self.random_choice(ExternalSystem.SYSTEM_TYPES, + exclude=['other']), + description=fake.text(max_nb_chars=200), + system_type=self.random_choice(ExternalSystem.SYSTEM_TYPES), + vendor=fake.company(), + version=f"{random.randint(1, 5)}.{random.randint(0, 9)}", + base_url=fake.url(), + host=fake.hostname(), + port=random.randint(1024, 65535), + authentication_type=self.random_choice(ExternalSystem.AUTHENTICATION_TYPES), + authentication_config=self._random_auth_config(), + configuration=self._random_config(), + timeout_seconds=random.randint(10, 60), + retry_attempts=random.randint(0, 5), + retry_delay_seconds=random.randint(1, 10), + is_active=self.random_bool(0.9), + is_healthy=self.random_bool(0.7), + health_check_interval=random.randint(120, 600), + connection_count=random.randint(0, 1000), + success_count=random.randint(0, 800), + failure_count=random.randint(0, 200), + last_used_at=timezone.now() - timedelta(days=random.randint(0, 30)), + created_by=User.objects.filter(is_staff=True).first() + ) + self.generate_endpoints(system, count=3) + + def generate_endpoints(self, system, count=3): + for _ in range(count): + endpoint = IntegrationEndpoint.objects.create( + external_system=system, + name=fake.word().title() + " API", + description=fake.text(max_nb_chars=150), + endpoint_type=self.random_choice(IntegrationEndpoint.ENDPOINT_TYPES), + path=f"/{fake.word()}/{fake.word()}", + method=self.random_choice(IntegrationEndpoint.METHODS), + direction=self.random_choice(IntegrationEndpoint.DIRECTIONS), + headers=self._random_headers(), + parameters=self._random_params(), + request_format="json", + response_format="json", + request_mapping=self._random_mapping(), + response_mapping=self._random_mapping(), + request_schema=self._random_schema(), + response_schema=self._random_schema(), + is_active=self.random_bool(0.9), + created_by=User.objects.filter(is_staff=True).first() + ) + # Data mappings belong to an endpoint – create a few of them + for _ in range(random.randint(0, 2)): + DataMapping.objects.create( + endpoint=endpoint, + name=fake.word().title() + " Mapping", + description=fake.text(max_nb_chars=100), + mapping_type=self.random_choice(DataMapping.MAPPING_TYPES), + source_field=fake.word(), + source_format="json", + source_validation=self._random_validation(), + target_field=fake.word(), + target_format="json", + target_validation=self._random_validation(), + transformation_type=self.random_choice(DataMapping.TRANSFORMATION_TYPES), + transformation_config=self._random_config(), + is_required=self.random_bool(), + validation_rules=self._random_validation(), + default_value=fake.word(), + is_active=self.random_bool(), + created_by=User.objects.filter(is_staff=True).first() + ) + self.generate_executions(endpoint, count=random.randint(0, 5)) + + # ------------------------------------------------------------------ + # Execution history + # ------------------------------------------------------------------ + def generate_executions(self, endpoint, count=3): + for _ in range(count): + started = timezone.now() - timedelta(minutes=random.randint(0, 120)) + completed = started + timedelta(seconds=random.randint(10, 120)) + if self.random_bool(0.1): + completed = None # simulate in‑flight or stuck + + exec = IntegrationExecution.objects.create( + endpoint=endpoint, + execution_type=self.random_choice(IntegrationExecution.EXECUTION_TYPES), + status=self.random_choice(IntegrationExecution.STATUSES), + started_at=started, + completed_at=completed, + request_data=self._random_json(), + response_data=self._random_json(), + request_size_bytes=random.randint(100, 2000), + response_size_bytes=random.randint(100, 2000), + processing_time_ms=random.randint(50, 2000), + network_time_ms=random.randint(10, 500), + error_message="" if self.random_bool(0.9) else fake.sentence(), + error_details=self._random_json() if self.random_bool(0.2) else {}, + retry_count=random.randint(0, 3), + external_id=fake.uuid4(), + correlation_id=fake.uuid4(), + triggered_by=User.objects.filter(is_staff=True).first(), + metadata=self._random_json() + ) + + # Webhook executions (if the endpoint is a webhook) + if endpoint.endpoint_type == "webhook": + self.generate_webhook_executions(endpoint.external_system, exec) + + # Logs – one per execution + self.generate_logs(exec, count=random.randint(1, 4)) + + # ------------------------------------------------------------------ + # Webhook endpoints & executions + # ------------------------------------------------------------------ + def generate_webhooks(self, tenant, count=2): + for _ in range(count): + system = ExternalSystem.objects.filter(tenant=tenant).first() + if not system: + continue + + webhook = WebhookEndpoint.objects.create( + external_system=system, + name=fake.word().title() + " Webhook", + description=fake.text(max_nb_chars=120), + url_path=f"/webhooks/{fake.slug()}", + allowed_methods=[self.random_choice(IntegrationEndpoint.METHODS)], + authentication_type=self.random_choice(WebhookEndpoint.AUTHENTICATION_TYPES), + authentication_config=self._random_auth_config(), + processing_config=self._random_config(), + rate_limit_per_minute=random.randint(30, 120), + rate_limit_per_hour=random.randint(500, 2000), + is_active=self.random_bool(0.9), + created_by=User.objects.filter(is_staff=True).first() + ) + + # Optionally link a data mapping + if DataMapping.objects.exists(): + webhook.data_mapping = random.choice(list(DataMapping.objects.all())) + webhook.save() + + self.generate_webhook_executions(webhook, None) + + # Logs for the webhook itself + self.generate_logs(webhook, count=random.randint(1, 3)) + + def generate_webhook_executions(self, webhook, parent_exec=None): + for _ in range(random.randint(0, 3)): + method = self.random_choice(IntegrationEndpoint.METHODS) + status = self.random_choice(WebhookExecution.STATUSES) + received_at = timezone.now() - timedelta(seconds=random.randint(0, 300)) + processed_at = received_at + timedelta(seconds=random.randint(0, 30)) if status in ("completed", "failed") else None + + WebhookExecution.objects.create( + webhook=webhook, + method=method, + headers=self._random_headers(), + query_params=self._random_params(), + payload=self._random_json(), + payload_size_bytes=random.randint(100, 2000), + client_ip=fake.ipv4_public(), + user_agent=fake.user_agent(), + status=status, + received_at=received_at, + processed_at=processed_at, + processing_time_ms=random.randint(50, 2000) if processed_at else None, + response_status=200 if status == "completed" else random.choice([400, 401, 403, 500]), + response_data=self._random_json(), + error_message="" if status == "completed" else fake.sentence(), + error_details=self._random_json() if status != "completed" else {}, + external_id=fake.uuid4(), + correlation_id=fake.uuid4(), + metadata=self._random_json() + ) + + # ------------------------------------------------------------------ + # Integration logs (generic) + # ------------------------------------------------------------------ + def generate_logs(self, source, count=5): + for _ in range(count): + timestamp = timezone.now() - timedelta(minutes=random.randint(0, 120)) + log = IntegrationLog.objects.create( + external_system=getattr(source, "external_system", None), + endpoint=getattr(source, "endpoint", None), + execution=getattr(source, "execution", None), + level=self.random_choice(IntegrationLog.LOG_LEVELS), + category=self.random_choice(IntegrationLog.CATEGORIES), + message=fake.sentence(), + details=self._random_json(), + correlation_id=fake.uuid4(), + user=User.objects.filter(is_staff=True).first(), + timestamp=timestamp, + metadata=self._random_json() + ) + + # ------------------------------------------------------------------ + # Random helpers + # ------------------------------------------------------------------ + @staticmethod + def _random_json(): + return { + "key1": fake.word(), + "key2": fake.word(), + "nested": {"sub": fake.word()} + } + + @staticmethod + def _random_headers(): + return { + "Authorization": f"Bearer {uuid.uuid4()}", + "Content-Type": "application/json" + } + + @staticmethod + def _random_params(): + return { + fake.word(): fake.word(), + fake.word(): fake.word() + } + + @staticmethod + def _random_mapping(): + return { + "source": fake.word(), + "target": fake.word() + } + + @staticmethod + def _random_schema(): + return { + "type": "object", + "properties": { + fake.word(): {"type": "string"}, + fake.word(): {"type": "integer"} + } + } + + @staticmethod + def _random_validation(): + return { + "regex": "^[A-Za-z0-9_]+$", + "max_length": 50 + } + + @staticmethod + def _random_auth_config(): + return { + "username": fake.user_name(), + "password": fake.password(), + "token_url": fake.url() + } + + @staticmethod + def _random_config(): + return { + "env": random.choice(["dev", "test", "prod"]), + "retries": random.randint(0, 5), + "timeout": random.randint(10, 60) + } \ No newline at end of file diff --git a/integration/views.py b/integration/views.py index 245a74f0..4a33cf21 100644 --- a/integration/views.py +++ b/integration/views.py @@ -53,15 +53,15 @@ class IntegrationDashboardView(LoginRequiredMixin, TemplateView): # Recent activity context.update({ 'recent_executions': IntegrationExecution.objects.filter( - endpoint__tenant=self.request.user.tenant - ).order_by('-execution_time')[:10], + endpoint__external_system__tenant=self.request.user.tenant + ).order_by('-started_at')[:10], 'recent_webhook_executions': WebhookExecution.objects.filter( - tenant=self.request.user.tenant - ).order_by('-execution_time')[:5], + webhook__external_system__tenant=self.request.user.tenant + ).order_by('-processed_at')[:5], 'recent_logs': IntegrationLog.objects.filter( - tenant=self.request.user.tenant + endpoint__external_system__tenant=self.request.user.tenant ).order_by('-timestamp')[:10], }) @@ -69,19 +69,19 @@ class IntegrationDashboardView(LoginRequiredMixin, TemplateView): today = timezone.now().date() context.update({ 'executions_today': IntegrationExecution.objects.filter( - tenant=self.request.user.tenant, - execution_time__date=today + endpoint__external_system__tenant=self.request.user.tenant, + started_at__date=today ).count(), 'successful_executions': IntegrationExecution.objects.filter( - tenant=self.request.user.tenant, - execution_time__date=today, + endpoint__external_system__tenant=self.request.user.tenant, + started_at__date=today, status='SUCCESS' ).count(), 'failed_executions': IntegrationExecution.objects.filter( - tenant=self.request.user.tenant, - execution_time__date=today, + endpoint__external_system__tenant=self.request.user.tenant, + started_at__date=today, status='FAILED' ).count(), }) @@ -91,13 +91,13 @@ class IntegrationDashboardView(LoginRequiredMixin, TemplateView): 'healthy_systems': ExternalSystem.objects.filter( tenant=self.request.user.tenant, is_active=True, - last_health_check_status='HEALTHY' + is_healthy=True ).count(), 'unhealthy_systems': ExternalSystem.objects.filter( tenant=self.request.user.tenant, is_active=True, - last_health_check_status='UNHEALTHY' + is_healthy=False, ).count(), }) @@ -199,7 +199,7 @@ class ExternalSystemCreateView(LoginRequiredMixin, CreateView): """ model = ExternalSystem form_class = ExternalSystemForm - template_name = 'integration/external_system_form.html' + template_name = 'integration/systems/external_system_form.html' success_url = reverse_lazy('integration:external_system_list') def form_valid(self, form): @@ -214,7 +214,7 @@ class ExternalSystemUpdateView(LoginRequiredMixin, UpdateView): """ model = ExternalSystem form_class = ExternalSystemForm - template_name = 'integration/external_system_form.html' + template_name = 'integration/systems/external_system_form.html' def get_queryset(self): return ExternalSystem.objects.filter(tenant=self.request.user.tenant) @@ -232,7 +232,7 @@ class ExternalSystemDeleteView(LoginRequiredMixin, DeleteView): Delete an external system. """ model = ExternalSystem - template_name = 'integration/external_system_confirm_delete.html' + template_name = 'integration/systems/external_system_confirm_delete.html' success_url = reverse_lazy('integration:external_system_list') def get_queryset(self): @@ -846,7 +846,7 @@ def integration_stats(request): context = { 'total_systems': ExternalSystem.objects.filter(tenant=request.user.tenant).count(), - 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).count(), + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).count(), 'total_mappings': DataMapping.objects.filter(tenant=request.user.tenant).count(), 'total_webhooks': WebhookEndpoint.objects.filter(tenant=request.user.tenant).count(), 'executions_today': IntegrationExecution.objects.filter( @@ -877,12 +877,12 @@ def system_health(request): 'healthy_systems': ExternalSystem.objects.filter( tenant=request.user.tenant, is_active=True, - last_health_check_status='HEALTHY' + is_healthy=True ).count(), 'unhealthy_systems': ExternalSystem.objects.filter( tenant=request.user.tenant, is_active=True, - last_health_check_status='UNHEALTHY' + is_healthy=False ).count(), } diff --git a/logs/hospital_management.log b/logs/hospital_management.log index dad02b5b..3963be60 100644 --- a/logs/hospital_management.log +++ b/logs/hospital_management.log @@ -80380,3 +80380,11832 @@ INFO 2025-08-24 11:59:28,121 basehttp 49588 6123925504 "GET /en/patients/registe 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 +INFO 2025-08-24 12:02:33,958 autoreload 53755 8466948288 Watching for file changes with StatReloader +INFO 2025-08-24 12:02:38,826 basehttp 53755 6161444864 "GET /en/patients/register/ HTTP/1.1" 200 27698 +WARNING 2025-08-24 12:02:38,845 log 53755 6161444864 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:02:38,845 basehttp 53755 6161444864 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:02:38,935 basehttp 53755 6161444864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:02:41,919 basehttp 53755 6161444864 "GET / HTTP/1.1" 302 0 +INFO 2025-08-24 12:02:41,944 basehttp 53755 6178271232 "GET /en/ HTTP/1.1" 200 47227 +WARNING 2025-08-24 12:02:41,964 log 53755 6178271232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:02:41,964 basehttp 53755 6178271232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:02:42,075 basehttp 53755 6178271232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:02:42,082 basehttp 53755 6211923968 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 12:02:42,082 basehttp 53755 6195097600 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:02:42,084 basehttp 53755 6161444864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:02:49,288 basehttp 53755 6161444864 "GET /en/ HTTP/1.1" 200 47227 +WARNING 2025-08-24 12:02:49,305 log 53755 6161444864 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:02:49,305 basehttp 53755 6161444864 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:02:49,418 basehttp 53755 6211923968 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:02:49,420 basehttp 53755 6178271232 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 12:02:49,421 basehttp 53755 6161444864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:02:49,422 basehttp 53755 6195097600 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:03:19,411 basehttp 53755 6195097600 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:03:49,430 basehttp 53755 6195097600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:03:49,433 basehttp 53755 6161444864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:03:49,434 basehttp 53755 6178271232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:04:19,407 basehttp 53755 6178271232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:04:49,433 basehttp 53755 6178271232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:04:49,434 basehttp 53755 6161444864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:04:49,436 basehttp 53755 6195097600 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:05:19,424 basehttp 53755 6195097600 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:05:49,439 basehttp 53755 6161444864 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:05:49,441 basehttp 53755 6195097600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:05:49,442 basehttp 53755 6178271232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:06:19,428 basehttp 53755 6178271232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:06:49,427 basehttp 53755 6178271232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:06:49,428 basehttp 53755 6195097600 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:06:49,430 basehttp 53755 6161444864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:07:19,428 basehttp 53755 6161444864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:07:49,448 basehttp 53755 6161444864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:07:49,449 basehttp 53755 6195097600 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:07:49,451 basehttp 53755 6178271232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:08:19,439 basehttp 53755 6161444864 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:08:49,433 basehttp 53755 6161444864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:08:49,437 basehttp 53755 13304360960 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:08:49,440 basehttp 53755 13321187328 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:09:04,010 basehttp 53755 13321187328 "GET /en/radiology HTTP/1.1" 301 0 +ERROR 2025-08-24 12:09:04,040 log 53755 13304360960 Internal Server Error: /en/radiology/ +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 'imaging_series_list' with no arguments not found. 1 pattern(s) tried: ['en/radiology/studies/(?P[0-9]+)/series/\\Z'] +ERROR 2025-08-24 12:09:04,042 basehttp 53755 13304360960 "GET /en/radiology/ HTTP/1.1" 500 172668 +WARNING 2025-08-24 12:09:04,056 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:09:04,056 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:19:10,924 basehttp 53755 6161444864 "GET /en/radiology/ HTTP/1.1" 200 29137 +WARNING 2025-08-24 12:19:10,938 log 53755 6161444864 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:10,939 basehttp 53755 6161444864 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:19:11,036 basehttp 53755 6161444864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +ERROR 2025-08-24 12:19:11,048 log 53755 13304360960 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-24 12:19:11,050 basehttp 53755 13304360960 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 120453 +INFO 2025-08-24 12:19:16,304 basehttp 53755 13304360960 "GET /en/radiology/orders/ HTTP/1.1" 200 24900 +WARNING 2025-08-24 12:19:16,323 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:16,323 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:19:16,412 basehttp 53755 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:19:18,852 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:18,852 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:19:18,865 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:18,865 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:19:19,880 basehttp 53755 13304360960 "GET /en/radiology/studies/ HTTP/1.1" 200 31362 +WARNING 2025-08-24 12:19:19,898 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:19,898 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:19:19,990 basehttp 53755 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:19:24,289 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:24,289 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:19:24,299 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:24,299 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-24 12:19:25,456 log 53755 13304360960 Internal Server Error: /en/radiology/reports/ +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/radiology/views.py", line 745, in get_queryset + queryset = RadiologyReport.objects.filter(tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'tenant' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-24 12:19:25,458 basehttp 53755 13304360960 "GET /en/radiology/reports/ HTTP/1.1" 500 132578 +WARNING 2025-08-24 12:19:25,473 log 53755 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:19:25,473 basehttp 53755 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:20:15,052 autoreload 53755 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:20:15,360 autoreload 61517 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-24 12:20:15,670 log 61517 6136803328 Internal Server Error: /en/radiology/reports/ +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 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1610, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 766, in as_sql + extra_select, order_by, group_by = self.pre_sql_setup( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 85, in pre_sql_setup + self.setup_query(with_col_aliases=with_col_aliases) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 74, in setup_query + self.select, self.klass_info, self.annotation_col_map = self.get_select( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 299, in get_select + related_klass_infos = self.get_related_selections(select, select_mask) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1265, in get_related_selections + next_klass_infos = self.get_related_selections( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1396, in get_related_selections + raise FieldError( +django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'order'. Choices are: tenant, patient, referring_physician, radiologist, encounter, imaging_order, created_by, report +ERROR 2025-08-24 12:20:15,672 basehttp 61517 6136803328 "GET /en/radiology/reports/ HTTP/1.1" 500 224812 +WARNING 2025-08-24 12:20:15,687 log 61517 6136803328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:20:15,687 basehttp 61517 6136803328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:20:55,012 autoreload 61517 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:20:55,328 autoreload 61830 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-24 12:20:57,188 log 61830 6130724864 Internal Server Error: /en/radiology/reports/ +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 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1610, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 766, in as_sql + extra_select, order_by, group_by = self.pre_sql_setup( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 85, in pre_sql_setup + self.setup_query(with_col_aliases=with_col_aliases) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 74, in setup_query + self.select, self.klass_info, self.annotation_col_map = self.get_select( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 299, in get_select + related_klass_infos = self.get_related_selections(select, select_mask) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1396, in get_related_selections + raise FieldError( +django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'template'. Choices are: study, radiologist, dictated_by, transcribed_by, template_used +ERROR 2025-08-24 12:20:57,190 basehttp 61830 6130724864 "GET /en/radiology/reports/ HTTP/1.1" 500 215435 +WARNING 2025-08-24 12:20:57,205 log 61830 6130724864 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:20:57,205 basehttp 61830 6130724864 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:21:17,369 autoreload 61830 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:21:17,679 autoreload 61988 8466948288 Watching for file changes with StatReloader +INFO 2025-08-24 12:21:18,695 basehttp 61988 6341865472 "GET /en/radiology/reports/ HTTP/1.1" 200 34112 +WARNING 2025-08-24 12:21:18,707 log 61988 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:21:18,707 basehttp 61988 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:21:18,800 basehttp 61988 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:21:45,906 autoreload 62159 8466948288 Watching for file changes with StatReloader +INFO 2025-08-24 12:21:57,810 basehttp 62159 6124613632 "GET /en/admin/ HTTP/1.1" 200 88075 +INFO 2025-08-24 12:22:03,313 basehttp 62159 6124613632 "GET /en/admin/analytics/dashboardwidget/ HTTP/1.1" 200 87030 +INFO 2025-08-24 12:22:03,325 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:11,538 basehttp 62159 6124613632 "GET /en/admin/communications/alertinstance/ HTTP/1.1" 200 68613 +INFO 2025-08-24 12:22:11,550 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:15,406 basehttp 62159 6124613632 "GET /en/admin/communications/messagerecipient/ HTTP/1.1" 200 69668 +INFO 2025-08-24 12:22:15,418 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:18,993 basehttp 62159 6124613632 "GET /en/admin/core/department/ HTTP/1.1" 200 78730 +INFO 2025-08-24 12:22:19,006 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:19,429 basehttp 62159 6124613632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:22:22,105 basehttp 62159 6124613632 "GET /en/admin/hr/employee/ HTTP/1.1" 200 150894 +INFO 2025-08-24 12:22:22,121 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:28,871 basehttp 62159 6124613632 "GET /en/admin/emr/careplan/ HTTP/1.1" 200 127216 +INFO 2025-08-24 12:22:28,888 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:33,463 basehttp 62159 6124613632 "GET /en/admin/appointments/appointmentrequest/ HTTP/1.1" 200 151866 +INFO 2025-08-24 12:22:33,473 basehttp 62159 6141440000 "GET /static/admin/img/icon-no.svg HTTP/1.1" 200 560 +INFO 2025-08-24 12:22:33,475 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:22:42,613 basehttp 62159 6124613632 "GET /en/admin/radiology/dicomimage/ HTTP/1.1" 200 68517 +INFO 2025-08-24 12:22:42,626 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:23:19,789 basehttp 62159 6124613632 "GET /en/admin/radiology/dicomimage/ HTTP/1.1" 200 156830 +INFO 2025-08-24 12:23:19,805 basehttp 62159 6124613632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:23:20,423 basehttp 62159 6124613632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +ERROR 2025-08-24 12:23:25,181 log 62159 6124613632 Internal Server Error: /en/radiology/reports/ +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 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 'radiology_report_update' not found. 'radiology_report_update' is not a valid view function or pattern name. +ERROR 2025-08-24 12:23:25,183 basehttp 62159 6124613632 "GET /en/radiology/reports/ HTTP/1.1" 500 218413 +WARNING 2025-08-24 12:23:25,198 log 62159 6124613632 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:23:25,198 basehttp 62159 6124613632 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:25:30,332 autoreload 62159 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:25:30,647 autoreload 64267 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-24 12:25:31,525 log 64267 6200094720 Internal Server Error: /en/radiology/reports/ +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 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 'radiology_report_delete' not found. 'radiology_report_delete' is not a valid view function or pattern name. +ERROR 2025-08-24 12:25:31,527 basehttp 64267 6200094720 "GET /en/radiology/reports/ HTTP/1.1" 500 219330 +WARNING 2025-08-24 12:25:31,542 log 64267 6200094720 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:25:31,543 basehttp 64267 6200094720 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:25:50,540 basehttp 64267 6200094720 "GET /en/radiology/reports/ HTTP/1.1" 200 130814 +WARNING 2025-08-24 12:25:50,553 log 64267 6200094720 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:25:50,553 basehttp 64267 6200094720 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:25:50,655 basehttp 64267 6200094720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +ERROR 2025-08-24 12:25:56,179 log 64267 6200094720 Internal Server Error: /en/radiology/reports/142/ +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/detail.py", line 112, in get + self.object = self.get_object() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 31, in get_object + queryset = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py", line 794, in get_queryset + return RadiologyReport.objects.filter(tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'tenant' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-24 12:25:56,181 basehttp 64267 6200094720 "GET /en/radiology/reports/142/ HTTP/1.1" 500 140522 +WARNING 2025-08-24 12:25:56,193 log 64267 6200094720 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:25:56,194 basehttp 64267 6200094720 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:26:19,495 autoreload 64267 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:26:19,823 autoreload 64587 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-24 12:26:20,942 log 64587 6133936128 Internal Server Error: /en/radiology/reports/142/ +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 'imaging_study_detail' with arguments '('',)' not found. 1 pattern(s) tried: ['en/radiology/studies/(?P[0-9]+)/\\Z'] +ERROR 2025-08-24 12:26:20,943 basehttp 64587 6133936128 "GET /en/radiology/reports/142/ HTTP/1.1" 500 178427 +WARNING 2025-08-24 12:26:20,953 log 64587 6133936128 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:26:20,953 basehttp 64587 6133936128 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-24 12:26:22,701 log 64587 6133936128 Internal Server Error: /en/radiology/reports/142/ +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 'imaging_study_detail' with arguments '('',)' not found. 1 pattern(s) tried: ['en/radiology/studies/(?P[0-9]+)/\\Z'] +ERROR 2025-08-24 12:26:22,703 basehttp 64587 6133936128 "GET /en/radiology/reports/142/ HTTP/1.1" 500 178427 +WARNING 2025-08-24 12:26:22,715 log 64587 6133936128 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:26:22,716 basehttp 64587 6133936128 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-24 12:27:00,982 log 64587 6133936128 Internal Server Error: /en/radiology/reports/142/ +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 'patient_detail' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/patientprofile/(?P[0-9]+)/details/\\Z'] +ERROR 2025-08-24 12:27:00,984 basehttp 64587 6133936128 "GET /en/radiology/reports/142/ HTTP/1.1" 500 177968 +WARNING 2025-08-24 12:27:00,996 log 64587 6133936128 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:27:00,997 basehttp 64587 6133936128 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:27:34,563 basehttp 64587 6133936128 "GET /en/radiology/reports/142/ HTTP/1.1" 200 28821 +WARNING 2025-08-24 12:27:34,578 log 64587 6133936128 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:27:34,578 basehttp 64587 6133936128 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:27:34,681 basehttp 64587 6133936128 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:28:34,700 basehttp 64587 6133936128 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:28:50,573 autoreload 64587 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:28:50,909 autoreload 65751 8466948288 Watching for file changes with StatReloader +INFO 2025-08-24 12:28:51,354 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31440 +WARNING 2025-08-24 12:28:51,372 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:28:51,372 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:28:51,458 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:29:50,729 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31661 +WARNING 2025-08-24 12:29:50,742 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:29:50,742 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:29:50,834 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:29:54,528 basehttp 65751 6163116032 "GET /en/radiology/studies/219/ HTTP/1.1" 200 31498 +WARNING 2025-08-24 12:29:54,543 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:29:54,543 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:29:54,631 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:29:58,805 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:29:58,805 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:29:58,819 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:29:58,819 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:30:11,241 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31899 +WARNING 2025-08-24 12:30:11,253 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:30:11,253 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:30:11,347 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:30:13,790 basehttp 65751 6163116032 "GET /en/patients/patientprofile/50/details/ HTTP/1.1" 200 37290 +WARNING 2025-08-24 12:30:13,811 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:30:13,811 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:30:13,916 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +ERROR 2025-08-24 12:30:13,932 log 65751 6213595136 Internal Server Error: /en/patients/htmx/appointments/50/ +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) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-08-24 12:30:13,932 basehttp 65751 6213595136 "GET /en/patients/htmx/appointments/50/ HTTP/1.1" 500 63439 +ERROR 2025-08-24 12:30:13,941 log 65751 6179942400 Internal Server Error: /en/patients/htmx/emergency-contacts/50/ +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/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._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 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-08-24 12:30:13,950 basehttp 65751 6179942400 "GET /en/patients/htmx/emergency-contacts/50/ HTTP/1.1" 500 89890 +ERROR 2025-08-24 12:30:13,966 log 65751 6196768768 Internal Server Error: /en/patients/insurance-info/50/ +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/patients/views.py", line 486, in get_queryset + return queryset.order_by('patient__last_name', '-is_primary', '-effective_date') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._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_primary' into field. Choices are: authorization_expiry, authorization_number, copay_amount, created_at, deductible_amount, effective_date, group_number, id, insurance_claims, insurance_company, insurance_type, is_active, is_verified, notes, out_of_pocket_max, patient, patient_id, plan_name, plan_type, policy_number, primary_bills, requires_authorization, secondary_bills, subscriber_dob, subscriber_name, subscriber_relationship, subscriber_ssn, termination_date, updated_at, verification_date, verified_by, verified_by_id +ERROR 2025-08-24 12:30:13,967 basehttp 65751 6196768768 "GET /en/patients/insurance-info/50/ HTTP/1.1" 500 109009 +WARNING 2025-08-24 12:30:26,716 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:30:26,716 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:30:26,732 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:30:26,732 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:31:11,359 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:32:11,353 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:32:49,476 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31891 +WARNING 2025-08-24 12:32:49,490 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:32:49,491 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:32:49,577 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:33:45,397 basehttp 65751 6196768768 "GET /en/admin/billing/billlineitem/ HTTP/1.1" 200 71961 +INFO 2025-08-24 12:33:45,414 basehttp 65751 6196768768 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-24 12:33:50,450 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:33:56,625 basehttp 65751 6196768768 "GET / HTTP/1.1" 302 0 +INFO 2025-08-24 12:33:56,641 basehttp 65751 6179942400 "GET /en/ HTTP/1.1" 200 47236 +INFO 2025-08-24 12:33:56,721 basehttp 65751 6179942400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:33:56,722 basehttp 65751 6163116032 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:33:56,724 basehttp 65751 6196768768 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 12:33:56,724 basehttp 65751 6213595136 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:34:00,391 basehttp 65751 6213595136 "GET /en/hr HTTP/1.1" 301 0 +INFO 2025-08-24 12:34:00,428 basehttp 65751 6196768768 "GET /en/hr/ HTTP/1.1" 200 42402 +INFO 2025-08-24 12:34:00,454 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:34:04,672 basehttp 65751 6196768768 "GET /en/hr/employees/ HTTP/1.1" 200 129718 +INFO 2025-08-24 12:34:04,713 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:34:08,070 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:34:08,070 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:34:42,965 basehttp 65751 6196768768 "GET /en/hr/employees/ HTTP/1.1" 200 129718 +WARNING 2025-08-24 12:34:42,980 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:34:42,980 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:34:43,075 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:34:51,443 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:35:00,558 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31961 +WARNING 2025-08-24 12:35:00,580 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:35:00,580 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:35:00,654 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:35:14,223 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31958 +WARNING 2025-08-24 12:35:14,240 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:35:14,241 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:35:14,320 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:35:18,398 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31958 +INFO 2025-08-24 12:35:18,410 basehttp 65751 6179942400 "GET /static/css/custom.css HTTP/1.1" 200 1855 +WARNING 2025-08-24 12:35:18,414 log 65751 6247247872 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:35:18,415 basehttp 65751 6247247872 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:35:18,415 basehttp 65751 6230421504 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-08-24 12:35:18,416 basehttp 65751 6179942400 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-08-24 12:35:18,420 basehttp 65751 6196768768 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-24 12:35:18,421 basehttp 65751 6230421504 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-24 12:35:18,427 basehttp 65751 6213595136 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-24 12:35:18,429 basehttp 65751 6163116032 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-24 12:35:18,432 basehttp 65751 6247247872 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-24 12:35:18,614 basehttp 65751 6247247872 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-24 12:35:18,615 basehttp 65751 6213595136 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-24 12:35:18,616 basehttp 65751 6163116032 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-24 12:35:18,617 basehttp 65751 6196768768 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-24 12:35:18,617 basehttp 65751 6230421504 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-24 12:35:18,619 basehttp 65751 6163116032 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-24 12:35:18,619 basehttp 65751 6230421504 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-24 12:35:18,620 basehttp 65751 6213595136 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-24 12:35:18,620 basehttp 65751 6196768768 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-24 12:35:18,622 basehttp 65751 6179942400 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-24 12:35:18,623 basehttp 65751 6163116032 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-24 12:35:18,624 basehttp 65751 6213595136 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-24 12:35:18,624 basehttp 65751 6230421504 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-24 12:35:18,624 basehttp 65751 6196768768 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-24 12:35:18,625 basehttp 65751 6179942400 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-24 12:35:18,626 basehttp 65751 6247247872 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-24 12:35:18,627 basehttp 65751 6163116032 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-24 12:35:18,628 basehttp 65751 6230421504 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-24 12:35:18,629 basehttp 65751 6179942400 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-24 12:35:18,629 basehttp 65751 6213595136 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-24 12:35:18,630 basehttp 65751 6247247872 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-24 12:35:18,630 basehttp 65751 6196768768 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-24 12:35:18,630 basehttp 65751 6230421504 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-24 12:35:18,646 basehttp 65751 6230421504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:35:18,651 basehttp 65751 6163116032 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +WARNING 2025-08-24 12:35:18,783 log 65751 6163116032 Not Found: /favicon.ico +WARNING 2025-08-24 12:35:18,783 basehttp 65751 6163116032 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-24 12:35:43,451 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:36:15,740 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31961 +WARNING 2025-08-24 12:36:15,756 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:36:15,756 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:36:15,839 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:36:18,236 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31961 +INFO 2025-08-24 12:36:18,245 basehttp 65751 6163116032 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-24 12:36:18,250 basehttp 65751 6213595136 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-08-24 12:36:18,250 basehttp 65751 6247247872 "GET /static/css/custom.css HTTP/1.1" 200 2046 +INFO 2025-08-24 12:36:18,254 basehttp 65751 6163116032 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-08-24 12:36:18,257 basehttp 65751 6247247872 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +WARNING 2025-08-24 12:36:18,261 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:36:18,261 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:36:18,266 basehttp 65751 6179942400 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-24 12:36:18,268 basehttp 65751 6230421504 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-24 12:36:18,269 basehttp 65751 6213595136 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-24 12:36:18,442 basehttp 65751 6213595136 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-24 12:36:18,460 basehttp 65751 6213595136 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-08-24 12:36:18,474 basehttp 65751 6213595136 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-24 12:36:18,475 basehttp 65751 6179942400 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-24 12:36:18,475 basehttp 65751 6196768768 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-24 12:36:18,476 basehttp 65751 6230421504 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-24 12:36:18,477 basehttp 65751 6247247872 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-24 12:36:18,477 basehttp 65751 6213595136 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-24 12:36:18,479 basehttp 65751 6163116032 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-24 12:36:18,479 basehttp 65751 6179942400 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-24 12:36:18,480 basehttp 65751 6230421504 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-24 12:36:18,480 basehttp 65751 6196768768 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-24 12:36:18,480 basehttp 65751 6247247872 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-24 12:36:18,481 basehttp 65751 6179942400 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-24 12:36:18,482 basehttp 65751 6163116032 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-24 12:36:18,482 basehttp 65751 6196768768 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-24 12:36:18,483 basehttp 65751 6230421504 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-24 12:36:18,485 basehttp 65751 6247247872 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-24 12:36:18,485 basehttp 65751 6179942400 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-24 12:36:18,486 basehttp 65751 6196768768 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-24 12:36:18,486 basehttp 65751 6230421504 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-24 12:36:18,486 basehttp 65751 6163116032 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-24 12:36:18,488 basehttp 65751 6247247872 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-24 12:36:18,488 basehttp 65751 6179942400 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-24 12:36:18,489 basehttp 65751 6213595136 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:36:18,587 log 65751 6213595136 Not Found: /favicon.ico +WARNING 2025-08-24 12:36:18,587 basehttp 65751 6213595136 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-24 12:36:44,451 basehttp 65751 6213595136 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:37:18,489 basehttp 65751 6213595136 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:37:29,854 basehttp 65751 6213595136 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32001 +INFO 2025-08-24 12:37:29,863 basehttp 65751 6213595136 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:37:29,871 log 65751 6213595136 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:37:29,872 basehttp 65751 6213595136 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:37:29,953 basehttp 65751 6213595136 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:37:32,908 basehttp 65751 6213595136 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32001 +INFO 2025-08-24 12:37:32,918 basehttp 65751 6247247872 "GET /static/css/custom.css HTTP/1.1" 200 2046 +INFO 2025-08-24 12:37:32,920 basehttp 65751 6196768768 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-08-24 12:37:32,923 basehttp 65751 6230421504 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-08-24 12:37:32,928 basehttp 65751 6213595136 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +WARNING 2025-08-24 12:37:32,932 log 65751 6247247872 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:37:32,933 basehttp 65751 6247247872 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:37:32,934 basehttp 65751 6230421504 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-24 12:37:32,939 basehttp 65751 6163116032 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-24 12:37:32,940 basehttp 65751 6179942400 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-24 12:37:32,941 basehttp 65751 6196768768 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-24 12:37:33,119 basehttp 65751 6196768768 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-08-24 12:37:33,142 basehttp 65751 6196768768 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-24 12:37:33,142 basehttp 65751 6247247872 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-24 12:37:33,143 basehttp 65751 6163116032 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-24 12:37:33,143 basehttp 65751 6230421504 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-24 12:37:33,144 basehttp 65751 6179942400 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-24 12:37:33,147 basehttp 65751 6247247872 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-24 12:37:33,147 basehttp 65751 6230421504 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-24 12:37:33,147 basehttp 65751 6163116032 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-24 12:37:33,147 basehttp 65751 6213595136 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-24 12:37:33,147 basehttp 65751 6179942400 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-24 12:37:33,150 basehttp 65751 6163116032 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-24 12:37:33,151 basehttp 65751 6230421504 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-24 12:37:33,151 basehttp 65751 6179942400 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-24 12:37:33,152 basehttp 65751 6213595136 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-24 12:37:33,154 basehttp 65751 6179942400 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-24 12:37:33,154 basehttp 65751 6163116032 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-24 12:37:33,155 basehttp 65751 6213595136 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-24 12:37:33,155 basehttp 65751 6230421504 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-24 12:37:33,156 basehttp 65751 6196768768 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-24 12:37:33,158 basehttp 65751 6179942400 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-24 12:37:33,159 basehttp 65751 6163116032 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-24 12:37:33,159 basehttp 65751 6230421504 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-24 12:37:33,160 basehttp 65751 6213595136 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-24 12:37:33,160 basehttp 65751 6247247872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:37:33,271 log 65751 6247247872 Not Found: /favicon.ico +WARNING 2025-08-24 12:37:33,271 basehttp 65751 6247247872 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-24 12:37:45,457 basehttp 65751 6247247872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:38:23,240 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32053 +INFO 2025-08-24 12:38:23,247 basehttp 65751 6163116032 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:38:23,255 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:38:23,256 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:38:23,336 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:38:46,455 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:38:56,619 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32050 +INFO 2025-08-24 12:38:56,627 basehttp 65751 6163116032 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:38:56,636 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:38:56,636 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:38:56,685 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:39:47,447 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:39:55,417 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32028 +INFO 2025-08-24 12:39:55,423 basehttp 65751 6163116032 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-08-24 12:39:55,440 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:39:55,440 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:39:55,474 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:39:58,058 basehttp 65751 6163116032 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32028 +INFO 2025-08-24 12:39:58,065 basehttp 65751 6213595136 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-08-24 12:39:58,068 basehttp 65751 6247247872 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-08-24 12:39:58,071 basehttp 65751 6213595136 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +WARNING 2025-08-24 12:39:58,076 log 65751 6163116032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:39:58,078 basehttp 65751 6163116032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:39:58,082 basehttp 65751 6179942400 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-24 12:39:58,087 basehttp 65751 6213595136 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-24 12:39:58,093 basehttp 65751 6230421504 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-24 12:39:58,093 basehttp 65751 6196768768 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-24 12:39:58,094 basehttp 65751 6247247872 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-24 12:39:58,407 basehttp 65751 6247247872 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-24 12:39:58,408 basehttp 65751 6213595136 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-24 12:39:58,408 basehttp 65751 6196768768 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-24 12:39:58,409 basehttp 65751 6179942400 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-24 12:39:58,409 basehttp 65751 6230421504 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-24 12:39:58,411 basehttp 65751 6213595136 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-24 12:39:58,412 basehttp 65751 6163116032 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-24 12:39:58,413 basehttp 65751 6230421504 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-24 12:39:58,413 basehttp 65751 6196768768 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-24 12:39:58,414 basehttp 65751 6213595136 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-24 12:39:58,415 basehttp 65751 6179942400 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-24 12:39:58,416 basehttp 65751 6196768768 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-24 12:39:58,418 basehttp 65751 6163116032 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-24 12:39:58,418 basehttp 65751 6213595136 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-24 12:39:58,419 basehttp 65751 6230421504 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-24 12:39:58,421 basehttp 65751 6196768768 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-24 12:39:58,422 basehttp 65751 6247247872 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-24 12:39:58,422 basehttp 65751 6179942400 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-24 12:39:58,422 basehttp 65751 6163116032 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-24 12:39:58,422 basehttp 65751 6213595136 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-24 12:39:58,423 basehttp 65751 6230421504 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-24 12:39:58,426 basehttp 65751 6213595136 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-24 12:39:58,426 basehttp 65751 6247247872 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-24 12:39:58,431 basehttp 65751 6163116032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:39:58,433 basehttp 65751 6196768768 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +WARNING 2025-08-24 12:39:58,538 log 65751 6196768768 Not Found: /favicon.ico +WARNING 2025-08-24 12:39:58,538 basehttp 65751 6196768768 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-24 12:40:48,453 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:40:48,774 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 31998 +INFO 2025-08-24 12:40:48,781 basehttp 65751 6196768768 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:40:48,801 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:40:48,802 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:40:48,871 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:41:13,274 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32018 +INFO 2025-08-24 12:41:13,283 basehttp 65751 6196768768 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:41:13,291 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:41:13,291 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:41:13,332 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:41:50,445 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:42:12,297 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32079 +INFO 2025-08-24 12:42:12,302 basehttp 65751 6196768768 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:42:12,307 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:42:12,307 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:42:12,353 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:42:30,475 basehttp 65751 6196768768 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32049 +INFO 2025-08-24 12:42:30,482 basehttp 65751 6196768768 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:42:30,492 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:42:30,492 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:42:30,533 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:42:39,870 basehttp 65751 6196768768 "GET /en/radiology/studies/219/ HTTP/1.1" 200 31498 +WARNING 2025-08-24 12:42:39,886 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:42:39,886 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:42:39,924 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:42:53,459 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:42:53,844 basehttp 65751 6196768768 "GET /en/emr/encounters/735/ HTTP/1.1" 200 32834 +INFO 2025-08-24 12:42:53,856 basehttp 65751 6163116032 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:42:53,860 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:42:53,861 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:42:53,910 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:43:05,690 log 65751 6196768768 Bad Request: /en/emr/encounter/735/vitals/add/ +WARNING 2025-08-24 12:43:05,690 basehttp 65751 6196768768 "GET /en/emr/encounter/735/vitals/add/ HTTP/1.1" 400 28 +ERROR 2025-08-24 12:43:09,840 log 65751 6196768768 Internal Server Error: /en/emr/notes/create/735/ +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/edit.py", line 178, in get + return super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 72, in get_context_data + kwargs["form"] = self.get_form() + ^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 37, in get_form + return form_class(**self.get_form_kwargs()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/emr/forms.py", line 294, in __init__ + super().__init__(*args, **kwargs) +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'user' +ERROR 2025-08-24 12:43:09,841 basehttp 65751 6196768768 "GET /en/emr/notes/create/735/ HTTP/1.1" 500 98898 +WARNING 2025-08-24 12:43:12,105 log 65751 6196768768 Bad Request: /en/emr/patient/735/problem/add/ +WARNING 2025-08-24 12:43:12,106 basehttp 65751 6196768768 "GET /en/emr/patient/735/problem/add/ HTTP/1.1" 400 28 +WARNING 2025-08-24 12:43:38,395 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:43:38,396 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:43:38,396 basehttp 65751 6163116032 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:43:38,412 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:43:38,412 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:43:39,942 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +ERROR 2025-08-24 12:43:41,677 log 65751 6196768768 Internal Server Error: /en/radiology/series/642/ +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 'imaging_series_list' with arguments '('',)' not found. 1 pattern(s) tried: ['en/radiology/studies/(?P[0-9]+)/series/\\Z'] +ERROR 2025-08-24 12:43:41,679 basehttp 65751 6196768768 "GET /en/radiology/series/642/ HTTP/1.1" 500 195694 +WARNING 2025-08-24 12:43:41,692 log 65751 6196768768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:43:41,692 basehttp 65751 6196768768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:44:53,462 basehttp 65751 6196768768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:45:11,874 autoreload 65751 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py changed, reloading. +INFO 2025-08-24 12:45:12,219 autoreload 72981 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-24 12:45:13,336 log 72981 6165622784 Internal Server Error: /en/radiology/series/642/ +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 'imaging_series_list' with arguments '('',)' not found. 1 pattern(s) tried: ['en/radiology/studies/(?P[0-9]+)/series/\\Z'] +ERROR 2025-08-24 12:45:13,338 basehttp 72981 6165622784 "GET /en/radiology/series/642/ HTTP/1.1" 500 195831 +WARNING 2025-08-24 12:45:13,348 log 72981 6165622784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:45:13,348 basehttp 72981 6165622784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-08-24 12:45:15,606 log 72981 6165622784 Internal Server Error: /en/radiology/series/642/ +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 'imaging_series_list' with arguments '('',)' not found. 1 pattern(s) tried: ['en/radiology/studies/(?P[0-9]+)/series/\\Z'] +ERROR 2025-08-24 12:45:15,607 basehttp 72981 6165622784 "GET /en/radiology/series/642/ HTTP/1.1" 500 195831 +WARNING 2025-08-24 12:45:15,619 log 72981 6165622784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:45:15,619 basehttp 72981 6165622784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:46:53,462 basehttp 72981 6165622784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:48:53,357 basehttp 72981 6165622784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:50:53,360 basehttp 72981 6165622784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:51:45,914 basehttp 72981 6165622784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:51:45,918 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:51:45,918 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:51:45,926 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:51:45,926 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:51:46,622 basehttp 72981 13304360960 "GET /en/radiology/studies/219/ HTTP/1.1" 200 31498 +INFO 2025-08-24 12:51:46,629 basehttp 72981 6165622784 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:51:46,633 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:51:46,633 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:51:46,714 basehttp 72981 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:51:56,093 basehttp 72981 13304360960 "GET /en/radiology/reports/142/ HTTP/1.1" 200 32049 +WARNING 2025-08-24 12:51:56,114 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:51:56,114 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:51:56,192 basehttp 72981 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:52:00,946 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:52:00,947 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:52:00,957 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:52:00,957 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:52:14,154 basehttp 72981 13304360960 "GET /en/radiology/studies/219/ HTTP/1.1" 200 31498 +WARNING 2025-08-24 12:52:14,169 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:52:14,170 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:52:14,218 basehttp 72981 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:52:32,383 basehttp 72981 13304360960 "GET / HTTP/1.1" 302 0 +INFO 2025-08-24 12:52:32,399 basehttp 72981 6165622784 "GET /en/ HTTP/1.1" 200 47244 +WARNING 2025-08-24 12:52:32,411 log 72981 6165622784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:52:32,412 basehttp 72981 6165622784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:52:32,480 basehttp 72981 6165622784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:52:32,490 basehttp 72981 13338013696 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 12:52:32,490 basehttp 72981 13321187328 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:52:32,492 basehttp 72981 13304360960 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:52:35,903 basehttp 72981 13304360960 "GET /en/hr HTTP/1.1" 301 0 +INFO 2025-08-24 12:52:35,939 basehttp 72981 13321187328 "GET /en/hr/ HTTP/1.1" 200 42402 +WARNING 2025-08-24 12:52:35,960 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:52:35,960 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:52:35,980 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:52:39,950 basehttp 72981 13321187328 "GET /en/hr/employees/create/ HTTP/1.1" 200 54492 +WARNING 2025-08-24 12:52:39,967 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:52:39,967 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:52:40,006 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:52:53,353 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:53:00,076 basehttp 72981 13321187328 "GET /en/hr/employees/ HTTP/1.1" 200 129718 +INFO 2025-08-24 12:53:00,094 basehttp 72981 13338013696 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:53:00,099 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:53:00,099 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:53:00,140 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:53:08,636 basehttp 72981 13321187328 "GET /en/hr/employees/56/ HTTP/1.1" 200 34496 +WARNING 2025-08-24 12:53:08,658 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:53:08,659 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:53:08,696 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:54:04,696 basehttp 72981 13321187328 "GET /en/hr/employees/56/update/ HTTP/1.1" 200 54308 +WARNING 2025-08-24 12:54:04,716 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:54:04,719 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:54:04,785 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:54:29,268 basehttp 72981 6165622784 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:54:29,275 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-08-24 12:54:29,276 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:54:29,276 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:54:29,297 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:54:29,297 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:54:53,354 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:54:54,867 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-08-24 12:54:54,868 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:54:54,868 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:54:54,880 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:54:54,880 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:55:24,460 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:24,461 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:55:24,462 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:55:24,468 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:24,468 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:55:25,975 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:25,976 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:55:25,976 basehttp 72981 13338013696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:55:25,983 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:25,983 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:55:27,007 basehttp 72981 13338013696 "GET /en/hr/ HTTP/1.1" 200 42402 +WARNING 2025-08-24 12:55:27,019 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:27,019 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:55:27,074 basehttp 72981 13338013696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:55:30,111 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:30,112 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:55:30,123 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:30,123 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:55:32,299 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:32,300 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:55:32,311 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:55:32,311 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:56:06,920 basehttp 72981 13338013696 "GET /en/hr/ HTTP/1.1" 200 42402 +INFO 2025-08-24 12:56:06,932 basehttp 72981 13304360960 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-08-24 12:56:06,937 log 72981 13338013696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-08-24 12:56:06,937 basehttp 72981 13304360960 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +WARNING 2025-08-24 12:56:06,938 basehttp 72981 13338013696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:56:06,938 basehttp 72981 13371666432 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-08-24 12:56:06,941 basehttp 72981 13338013696 - Broken pipe from ('127.0.0.1', 56347) +INFO 2025-08-24 12:56:06,943 basehttp 72981 13321187328 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-24 12:56:06,944 basehttp 72981 13388492800 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-24 12:56:06,952 basehttp 72981 13354840064 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-24 12:56:06,955 basehttp 72981 6165622784 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-24 12:56:06,955 basehttp 72981 13304360960 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-24 12:56:07,232 basehttp 72981 13304360960 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-08-24 12:56:07,260 basehttp 72981 13304360960 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-24 12:56:07,260 basehttp 72981 13388492800 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-24 12:56:07,260 basehttp 72981 6165622784 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-24 12:56:07,261 basehttp 72981 13321187328 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-24 12:56:07,262 basehttp 72981 13354840064 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-24 12:56:07,263 basehttp 72981 13388492800 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-24 12:56:07,264 basehttp 72981 13371666432 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-24 12:56:07,265 basehttp 72981 13321187328 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-24 12:56:07,265 basehttp 72981 6165622784 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-24 12:56:07,267 basehttp 72981 13354840064 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-24 12:56:07,267 basehttp 72981 13388492800 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-24 12:56:07,268 basehttp 72981 13371666432 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-24 12:56:07,269 basehttp 72981 13388492800 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-24 12:56:07,269 basehttp 72981 13354840064 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-24 12:56:07,270 basehttp 72981 6165622784 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-24 12:56:07,270 basehttp 72981 13304360960 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-24 12:56:07,270 basehttp 72981 13371666432 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-24 12:56:07,275 basehttp 72981 6165622784 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-24 12:56:07,276 basehttp 72981 13371666432 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-24 12:56:07,277 basehttp 72981 13304360960 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-24 12:56:07,277 basehttp 72981 13354840064 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-24 12:56:07,278 basehttp 72981 13388492800 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-24 12:56:07,279 basehttp 72981 6165622784 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-24 12:56:07,280 basehttp 72981 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:56:07,366 log 72981 13321187328 Not Found: /favicon.ico +WARNING 2025-08-24 12:56:07,366 basehttp 72981 13321187328 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-24 12:56:28,903 basehttp 72981 13321187328 "GET /en/hr/departments/create/ HTTP/1.1" 200 41275 +INFO 2025-08-24 12:56:28,921 basehttp 72981 6165622784 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +WARNING 2025-08-24 12:56:28,925 basehttp 72981 6165622784 "GET /static/plugins/select2-bootstrap5-theme/select2-bootstrap5.min.css HTTP/1.1" 404 2104 +WARNING 2025-08-24 12:56:28,927 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:56:28,927 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:56:28,928 basehttp 72981 13388492800 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +INFO 2025-08-24 12:56:29,007 basehttp 72981 13388492800 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:56:53,359 basehttp 72981 13388492800 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:57:09,255 log 72981 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:57:09,256 basehttp 72981 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:57:09,257 basehttp 72981 13388492800 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:57:09,257 basehttp 72981 13321187328 - Broken pipe from ('127.0.0.1', 56346) +WARNING 2025-08-24 12:57:09,266 log 72981 13388492800 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:57:09,266 basehttp 72981 13388492800 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:57:36,461 basehttp 72981 13388492800 "GET /en/hr/schedules/create/ HTTP/1.1" 200 35020 +INFO 2025-08-24 12:57:36,481 basehttp 72981 13354840064 "GET /static/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 200 15733 +INFO 2025-08-24 12:57:36,481 basehttp 72981 13304360960 "GET /static/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 200 33871 +WARNING 2025-08-24 12:57:36,485 log 72981 13388492800 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:57:36,485 basehttp 72981 13388492800 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:57:36,541 basehttp 72981 13388492800 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +WARNING 2025-08-24 12:57:57,603 log 72981 13388492800 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:57:57,603 basehttp 72981 13388492800 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-24 12:57:57,620 log 72981 13388492800 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:57:57,620 basehttp 72981 13388492800 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:58:08,321 basehttp 72981 13388492800 "GET /en/hr/ HTTP/1.1" 200 42402 +INFO 2025-08-24 12:58:08,328 basehttp 72981 13388492800 "GET /static/css/custom.css HTTP/1.1" 304 0 +WARNING 2025-08-24 12:58:08,346 log 72981 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:58:08,346 basehttp 72981 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:58:08,412 basehttp 72981 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:58:33,708 basehttp 72981 13304360960 "GET / HTTP/1.1" 302 0 +INFO 2025-08-24 12:58:33,723 basehttp 72981 13388492800 "GET /en/ HTTP/1.1" 200 47244 +WARNING 2025-08-24 12:58:33,741 log 72981 13388492800 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:58:33,741 basehttp 72981 13388492800 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:58:33,785 basehttp 72981 13388492800 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:58:33,805 basehttp 72981 13371666432 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-24 12:58:33,805 basehttp 72981 6165622784 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-24 12:58:33,808 basehttp 72981 13354840064 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-24 12:58:43,168 basehttp 72981 13354840064 "GET /en/laboratory/tests/create/ HTTP/1.1" 200 47011 +WARNING 2025-08-24 12:58:43,184 log 72981 13354840064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-24 12:58:43,185 basehttp 72981 13354840064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-24 12:58:43,226 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:58:53,358 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 12:59:43,697 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:00:43,705 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:00:53,347 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:01:43,707 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:02:44,349 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:02:53,352 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:03:45,355 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:04:46,380 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-24 13:04:53,391 basehttp 72981 13354840064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4680 +INFO 2025-08-27 10:01:13,715 autoreload 65484 8466948288 Watching for file changes with StatReloader +INFO 2025-08-27 10:01:16,413 basehttp 65484 6195015680 "GET / HTTP/1.1" 302 0 +INFO 2025-08-27 10:01:16,475 basehttp 65484 6211842048 "GET /en/ HTTP/1.1" 200 47208 +INFO 2025-08-27 10:01:18,593 basehttp 65484 6211842048 "GET /static/css/custom.css HTTP/1.1" 304 0 +INFO 2025-08-27 10:01:18,632 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:01:18,638 basehttp 65484 6245494784 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 10:01:18,639 basehttp 65484 6228668416 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 10:01:18,640 basehttp 65484 6195015680 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 10:01:18,903 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:01:43,974 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:02:17,133 basehttp 65484 6195015680 "GET /en/hr/employees/ HTTP/1.1" 200 130531 +WARNING 2025-08-27 10:02:17,155 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:02:17,155 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:02:17,212 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:02:34,099 basehttp 65484 6195015680 "GET /en/hr/employees/ HTTP/1.1" 200 130488 +WARNING 2025-08-27 10:02:34,127 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:02:34,127 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:02:34,156 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:03:00,076 basehttp 65484 6195015680 "GET /en/hr/employees/ HTTP/1.1" 200 130488 +WARNING 2025-08-27 10:03:00,094 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:03:00,094 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:03:00,149 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:03:05,068 basehttp 65484 6195015680 "GET /en/htmx/dismiss-notification/4973f427-4422-441c-91e6-a20225c54127/ HTTP/1.1" 200 23 +WARNING 2025-08-27 10:03:05,086 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:03:05,086 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:03:08,479 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:03:08,480 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:03:08,496 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:03:08,496 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:03:10,932 basehttp 65484 6195015680 "GET /en/hr/employees/ HTTP/1.1" 200 130488 +WARNING 2025-08-27 10:03:10,946 log 65484 6195015680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:03:10,947 basehttp 65484 6195015680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:03:10,988 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:03:43,984 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:04:11,002 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:05:11,017 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:05:43,981 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:06:11,011 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:07:11,020 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:07:43,978 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:08:11,019 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:09:11,027 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:09:43,974 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:10:11,978 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:11:13,990 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:11:43,984 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:12:43,981 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:13:43,977 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:14:43,988 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:15:43,990 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:16:43,984 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:17:43,984 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:18:43,977 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:19:43,967 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:20:26,204 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:20:44,989 basehttp 65484 6195015680 "GET /en/hr/employees/109/ HTTP/1.1" 200 34389 +INFO 2025-08-27 10:20:45,057 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:21:43,979 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:21:45,066 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:22:45,073 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:23:43,984 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:23:45,073 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:24:28,652 basehttp 65484 6195015680 "GET /en/hr/employees/ HTTP/1.1" 200 130488 +INFO 2025-08-27 10:24:28,702 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:24:31,190 basehttp 65484 6195015680 "GET /en/hr/ HTTP/1.1" 200 42399 +INFO 2025-08-27 10:24:31,220 basehttp 65484 6195015680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:24:38,870 basehttp 65484 6195015680 "GET /en/hr/departments/create/ HTTP/1.1" 200 41275 +WARNING 2025-08-27 10:24:38,877 basehttp 65484 6195015680 "GET /static/plugins/select2-bootstrap5-theme/select2-bootstrap5.min.css HTTP/1.1" 404 2104 +INFO 2025-08-27 10:24:38,903 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 10:25:01,281 log 65484 6211842048 Internal Server Error: /en/hr/departments/ +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 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 131, in __iter__ + setattr(obj, attr_name, row[col_pos]) +AttributeError: property 'employee_count' of 'Department' object has no setter +ERROR 2025-08-27 10:25:01,283 basehttp 65484 6211842048 "GET /en/hr/departments/ HTTP/1.1" 500 175952 +INFO 2025-08-27 10:25:43,982 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:27:43,994 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:29:43,994 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:31:43,998 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:33:44,058 basehttp 65484 6211842048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:34:18,921 autoreload 65484 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/hr/views.py changed, reloading. +INFO 2025-08-27 10:34:19,518 autoreload 84854 8466948288 Watching for file changes with StatReloader +INFO 2025-08-27 10:34:22,152 basehttp 84854 6204338176 "GET /en/hr/departments/ HTTP/1.1" 200 125410 +WARNING 2025-08-27 10:34:22,168 basehttp 84854 6254817280 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +INFO 2025-08-27 10:34:22,175 basehttp 84854 6237990912 "GET /static/plugins/datatables.net-buttons-bs5/css/buttons.bootstrap5.min.css HTTP/1.1" 200 8136 +INFO 2025-08-27 10:34:22,176 basehttp 84854 6204338176 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-08-27 10:34:22,176 basehttp 84854 6288470016 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-08-27 10:34:22,177 basehttp 84854 6271643648 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-08-27 10:34:22,177 basehttp 84854 6254817280 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-08-27 10:34:22,177 basehttp 84854 6221164544 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-08-27 10:34:22,180 basehttp 84854 6288470016 "GET /static/plugins/datatables.net-buttons/js/buttons.html5.min.js HTTP/1.1" 200 26043 +INFO 2025-08-27 10:34:22,182 basehttp 84854 6271643648 "GET /static/plugins/datatables.net-buttons/js/buttons.print.min.js HTTP/1.1" 200 3073 +INFO 2025-08-27 10:34:22,182 basehttp 84854 6237990912 "GET /static/plugins/datatables.net-buttons/js/dataTables.buttons.min.js HTTP/1.1" 200 27926 +INFO 2025-08-27 10:34:22,184 basehttp 84854 6221164544 "GET /static/plugins/datatables.net-buttons-bs5/js/buttons.bootstrap5.min.js HTTP/1.1" 200 1627 +INFO 2025-08-27 10:34:22,188 basehttp 84854 6254817280 "GET /static/plugins/jszip/dist/jszip.min.js HTTP/1.1" 200 97630 +INFO 2025-08-27 10:34:22,195 basehttp 84854 6288470016 "GET /static/plugins/pdfmake/build/vfs_fonts.js HTTP/1.1" 200 828866 +INFO 2025-08-27 10:34:22,196 basehttp 84854 6204338176 "GET /static/plugins/pdfmake/build/pdfmake.min.js HTTP/1.1" 200 1400771 +INFO 2025-08-27 10:34:22,226 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 10:34:32,668 log 84854 6204338176 Internal Server Error: /en/hr/departments/12/ +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 90, in rendered_content + template = self.resolve_template(self.template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 72, in resolve_template + return select_template(template, using=self.using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 42, in select_template + return engine.get_template(template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 79, in get_template + return Template(self.engine.get_template(template_name), self) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/engine.py", line 177, in get_template + template, origin = self.find_template(template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/engine.py", line 159, in find_template + template = loader.get_template(name, skip=skip) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loaders/cached.py", line 57, in get_template + template = super().get_template(template_name, skip) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loaders/base.py", line 28, in get_template + return Template( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 154, in __init__ + self.nodelist = self.compile_nodelist() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 196, in compile_nodelist + nodelist = parser.parse() + ^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 299, in do_extends + nodelist = parser.parse() + ^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 234, in do_block + nodelist = parser.parse(("endblock",)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 489, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 487, in parse + filter_expression = self.compile_filter(token.contents) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 609, in compile_filter + return FilterExpression(token, self) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 710, in __init__ + raise TemplateSyntaxError( +django.template.exceptions.TemplateSyntaxError: Could not parse the remainder: '(employment_type='FULL_TIME').count' from 'employees.filter(employment_type='FULL_TIME').count' +ERROR 2025-08-27 10:34:32,671 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 500 212168 +INFO 2025-08-27 10:35:41,506 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 200 35115 +WARNING 2025-08-27 10:35:41,518 basehttp 84854 6221164544 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +WARNING 2025-08-27 10:35:41,518 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:35:41,518 basehttp 84854 6237990912 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:35:41,520 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:35:41,524 basehttp 84854 6204338176 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +INFO 2025-08-27 10:35:41,548 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:35:43,983 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 10:36:08,279 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:36:08,303 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:36:08,303 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:36:41,560 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:36:59,610 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 200 35150 +WARNING 2025-08-27 10:36:59,620 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:36:59,621 basehttp 84854 6221164544 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +WARNING 2025-08-27 10:36:59,622 basehttp 84854 6237990912 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:36:59,624 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:36:59,626 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:36:59,626 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:36:59,671 basehttp 84854 6254817280 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +INFO 2025-08-27 10:36:59,705 basehttp 84854 6204338176 "GET /static/css/saudiriyalsymbol.woff2 HTTP/1.1" 200 720 +INFO 2025-08-27 10:36:59,717 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:37:03,117 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 200 35150 +WARNING 2025-08-27 10:37:03,126 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:37:03,127 basehttp 84854 6237990912 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:37:03,128 basehttp 84854 6221164544 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +WARNING 2025-08-27 10:37:03,130 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:37:03,132 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:37:03,132 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:37:03,178 basehttp 84854 6254817280 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +INFO 2025-08-27 10:37:03,220 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:37:43,997 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:38:03,231 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:38:38,906 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 200 35186 +WARNING 2025-08-27 10:38:38,926 basehttp 84854 6221164544 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +WARNING 2025-08-27 10:38:38,927 basehttp 84854 6237990912 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:38:38,929 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:38:38,929 basehttp 84854 6254817280 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:38:38,932 log 84854 6271643648 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:38:38,932 basehttp 84854 6271643648 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:38:38,970 basehttp 84854 6271643648 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +INFO 2025-08-27 10:38:39,014 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:38:41,635 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 200 35186 +WARNING 2025-08-27 10:38:41,643 basehttp 84854 6288470016 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +INFO 2025-08-27 10:38:41,643 basehttp 84854 6237990912 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-08-27 10:38:41,645 basehttp 84854 6254817280 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-08-27 10:38:41,645 basehttp 84854 6271643648 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +WARNING 2025-08-27 10:38:41,651 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:38:41,652 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:38:41,652 basehttp 84854 6271643648 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-08-27 10:38:41,652 basehttp 84854 6204338176 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-27 10:38:41,653 basehttp 84854 6305296384 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +WARNING 2025-08-27 10:38:41,656 basehttp 84854 6254817280 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +WARNING 2025-08-27 10:38:41,656 basehttp 84854 6204338176 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +INFO 2025-08-27 10:38:41,660 basehttp 84854 6204338176 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-08-27 10:38:41,663 basehttp 84854 6237990912 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-27 10:38:41,663 basehttp 84854 6221164544 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-27 10:38:41,664 basehttp 84854 6204338176 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +WARNING 2025-08-27 10:38:41,667 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +INFO 2025-08-27 10:38:41,668 basehttp 84854 6305296384 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-27 10:38:41,669 basehttp 84854 6254817280 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-08-27 10:38:41,675 basehttp 84854 6271643648 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +WARNING 2025-08-27 10:38:41,881 basehttp 84854 6254817280 "GET /static/img/user/default-avatar.jpg HTTP/1.1" 404 2008 +INFO 2025-08-27 10:38:41,887 basehttp 84854 6271643648 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-08-27 10:38:41,900 basehttp 84854 6271643648 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-27 10:38:41,900 basehttp 84854 6204338176 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-27 10:38:41,900 basehttp 84854 6305296384 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-27 10:38:41,900 basehttp 84854 6237990912 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-27 10:38:41,901 basehttp 84854 6221164544 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-27 10:38:41,902 basehttp 84854 6237990912 "GET /static/css/saudiriyalsymbol.woff2 HTTP/1.1" 200 720 +INFO 2025-08-27 10:38:41,906 basehttp 84854 6221164544 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-27 10:38:41,907 basehttp 84854 6271643648 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-27 10:38:41,907 basehttp 84854 6237990912 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-27 10:38:41,907 basehttp 84854 6254817280 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-27 10:38:41,908 basehttp 84854 6221164544 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-27 10:38:41,909 basehttp 84854 6305296384 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-27 10:38:41,911 basehttp 84854 6254817280 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-27 10:38:41,912 basehttp 84854 6237990912 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-27 10:38:41,912 basehttp 84854 6221164544 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-27 10:38:41,912 basehttp 84854 6271643648 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-27 10:38:41,913 basehttp 84854 6305296384 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-27 10:38:41,914 basehttp 84854 6204338176 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-27 10:38:41,915 basehttp 84854 6221164544 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-27 10:38:41,915 basehttp 84854 6271643648 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-27 10:38:41,915 basehttp 84854 6305296384 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-27 10:38:41,915 basehttp 84854 6254817280 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-27 10:38:41,916 basehttp 84854 6204338176 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-27 10:38:41,917 basehttp 84854 6237990912 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-27 10:38:41,953 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 10:38:42,016 log 84854 6237990912 Not Found: /favicon.ico +WARNING 2025-08-27 10:38:42,016 basehttp 84854 6237990912 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-27 10:39:20,110 basehttp 84854 6237990912 "GET /en/hr/departments/12/ HTTP/1.1" 200 35170 +WARNING 2025-08-27 10:39:20,120 basehttp 84854 6204338176 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:39:20,121 basehttp 84854 6237990912 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +INFO 2025-08-27 10:39:20,122 basehttp 84854 6305296384 "GET /static/img/user/user-1.jpg HTTP/1.1" 200 3528 +WARNING 2025-08-27 10:39:20,127 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:39:20,128 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:39:20,129 basehttp 84854 6305296384 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +INFO 2025-08-27 10:39:20,219 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:39:43,989 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:40:20,211 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:41:06,769 basehttp 84854 6254817280 "GET /en/hr/departments/12/ HTTP/1.1" 200 35116 +WARNING 2025-08-27 10:41:06,783 basehttp 84854 6254817280 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:41:06,783 basehttp 84854 6271643648 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:41:06,783 basehttp 84854 6221164544 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:41:06,786 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:41:06,786 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:41:06,828 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:41:29,591 basehttp 84854 6204338176 "GET /en/hr/departments/12/ HTTP/1.1" 200 35116 +WARNING 2025-08-27 10:41:29,603 basehttp 84854 6237990912 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:41:29,604 basehttp 84854 6221164544 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:41:29,605 basehttp 84854 6254817280 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:41:29,607 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:41:29,607 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:41:29,653 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:41:43,984 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:42:07,940 basehttp 84854 6204338176 "GET /en/admin HTTP/1.1" 301 0 +INFO 2025-08-27 10:42:07,997 basehttp 84854 6221164544 "GET /en/admin/ HTTP/1.1" 200 88075 +INFO 2025-08-27 10:42:08,002 basehttp 84854 6204338176 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-08-27 10:42:08,002 basehttp 84854 6237990912 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-08-27 10:42:08,002 basehttp 84854 6221164544 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-08-27 10:42:08,004 basehttp 84854 6237990912 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-08-27 10:42:08,004 basehttp 84854 6221164544 "GET /static/admin/css/dashboard.css HTTP/1.1" 200 441 +INFO 2025-08-27 10:42:08,004 basehttp 84854 6204338176 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-08-27 10:42:08,005 basehttp 84854 6204338176 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +INFO 2025-08-27 10:42:08,008 basehttp 84854 6204338176 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-08-27 10:42:08,008 basehttp 84854 6221164544 "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 +INFO 2025-08-27 10:42:08,008 basehttp 84854 6237990912 "GET /static/admin/img/icon-deletelink.svg HTTP/1.1" 200 392 +INFO 2025-08-27 10:42:12,817 basehttp 84854 6237990912 "GET /en/admin/hr/employee/ HTTP/1.1" 200 150894 +INFO 2025-08-27 10:42:12,831 basehttp 84854 6254817280 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-08-27 10:42:12,831 basehttp 84854 6237990912 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-08-27 10:42:12,832 basehttp 84854 6288470016 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-08-27 10:42:12,832 basehttp 84854 6271643648 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-08-27 10:42:12,834 basehttp 84854 6288470016 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-08-27 10:42:12,834 basehttp 84854 6254817280 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-08-27 10:42:12,834 basehttp 84854 6237990912 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-08-27 10:42:12,838 basehttp 84854 6204338176 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-08-27 10:42:12,838 basehttp 84854 6288470016 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-08-27 10:42:12,841 basehttp 84854 6221164544 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-27 10:42:12,842 basehttp 84854 6221164544 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-08-27 10:42:12,842 basehttp 84854 6271643648 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-08-27 10:42:12,856 basehttp 84854 6271643648 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-08-27 10:42:12,857 basehttp 84854 6271643648 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-08-27 10:42:17,756 basehttp 84854 6271643648 "GET /en/admin/hr/employee/98/change/ HTTP/1.1" 200 268132 +INFO 2025-08-27 10:42:17,772 basehttp 84854 6254817280 "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 586 +INFO 2025-08-27 10:42:17,772 basehttp 84854 6288470016 "GET /static/admin/js/calendar.js HTTP/1.1" 200 9141 +INFO 2025-08-27 10:42:17,772 basehttp 84854 6271643648 "GET /static/admin/css/forms.css HTTP/1.1" 200 8525 +INFO 2025-08-27 10:42:17,772 basehttp 84854 6237990912 "GET /static/admin/js/inlines.js HTTP/1.1" 200 15628 +INFO 2025-08-27 10:42:17,773 basehttp 84854 6204338176 "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19319 +INFO 2025-08-27 10:42:17,775 basehttp 84854 6204338176 "GET /static/admin/css/widgets.css HTTP/1.1" 200 11991 +INFO 2025-08-27 10:42:17,776 basehttp 84854 6221164544 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-27 10:42:17,776 basehttp 84854 6204338176 "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 200 655 +INFO 2025-08-27 10:42:17,777 basehttp 84854 6204338176 "GET /static/admin/js/change_form.js HTTP/1.1" 200 606 +INFO 2025-08-27 10:42:17,835 basehttp 84854 6221164544 "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677 +INFO 2025-08-27 10:42:17,835 basehttp 84854 6204338176 "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086 +INFO 2025-08-27 10:42:22,812 basehttp 84854 6204338176 "GET /en/admin/hr/employee/48/change/ HTTP/1.1" 200 248699 +INFO 2025-08-27 10:42:22,831 basehttp 84854 6204338176 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-27 10:42:29,979 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:42:52,482 basehttp 84854 6204338176 "GET /en/admin/accounts/user/add/?_to_field=id&_popup=1 HTTP/1.1" 200 8111 +INFO 2025-08-27 10:42:52,487 basehttp 84854 6221164544 "GET /static/admin/css/unusable_password_field.css HTTP/1.1" 200 663 +INFO 2025-08-27 10:42:52,488 basehttp 84854 6221164544 "GET /static/admin/js/unusable_password_field.js HTTP/1.1" 200 1480 +INFO 2025-08-27 10:42:52,493 basehttp 84854 6204338176 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-08-27 10:43:26,237 log 84854 6204338176 Internal Server Error: /en/admin/accounts/user/add/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 360, in execute + return super().execute(query, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +sqlite3.IntegrityError: NOT NULL constraint failed: accounts_user.tenant_id + +The above exception was the direct cause of the following exception: + +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/admin/options.py", line 719, in wrapper + return self.admin_site.admin_view(view)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/sites.py", line 246, in inner + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/admin.py", line 124, in add_view + return self._add_view(request, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/admin.py", line 152, in _add_view + return super().add_view(request, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1984, in add_view + return self.changeform_view(request, None, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1843, in changeform_view + return self._changeform_view(request, object_id, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1894, in _changeform_view + self.save_model(request, new_object, form, not add) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1314, in save_model + obj.save() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/base_user.py", line 65, in save + super().save(*args, **kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 902, in save + self.save_base( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1008, in save_base + updated = self._save_table( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1169, in _save_table + results = self._do_insert( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1210, in _do_insert + return manager._insert( + ^^^^^^^^^^^^^^^^ + 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 1868, in _insert + return query.get_compiler(using=using).execute_sql(returning_fields) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1882, in execute_sql + cursor.execute(sql, params) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 122, in execute + return super().execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 79, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 100, in _execute + with self.db.wrap_database_errors: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 360, in execute + return super().execute(query, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +django.db.utils.IntegrityError: NOT NULL constraint failed: accounts_user.tenant_id +ERROR 2025-08-27 10:43:26,239 basehttp 84854 6204338176 "POST /en/admin/accounts/user/add/?_to_field=id&_popup=1 HTTP/1.1" 500 280721 +INFO 2025-08-27 10:43:30,994 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:43:34,744 basehttp 84854 6204338176 "GET /en/admin/hr/employee/48/change/ HTTP/1.1" 200 248699 +INFO 2025-08-27 10:43:34,759 basehttp 84854 6204338176 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-27 10:43:35,569 basehttp 84854 6204338176 "GET /en/admin/hr/employee/48/change/ HTTP/1.1" 200 248699 +INFO 2025-08-27 10:43:35,588 basehttp 84854 6204338176 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-27 10:43:37,870 basehttp 84854 6204338176 "GET /en/admin/accounts/user/ HTTP/1.1" 200 105683 +INFO 2025-08-27 10:43:37,879 basehttp 84854 6221164544 "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 +INFO 2025-08-27 10:43:37,883 basehttp 84854 6204338176 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-08-27 10:43:43,990 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:43:50,422 basehttp 84854 6204338176 "GET /en/admin/accounts/user/add/ HTTP/1.1" 200 70268 +INFO 2025-08-27 10:43:50,436 basehttp 84854 6204338176 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-08-27 10:44:20,757 log 84854 6204338176 Internal Server Error: /en/admin/accounts/user/add/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 360, in execute + return super().execute(query, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +sqlite3.IntegrityError: NOT NULL constraint failed: accounts_user.tenant_id + +The above exception was the direct cause of the following exception: + +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/admin/options.py", line 719, in wrapper + return self.admin_site.admin_view(view)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/sites.py", line 246, in inner + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/admin.py", line 124, in add_view + return self._add_view(request, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/admin.py", line 152, in _add_view + return super().add_view(request, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1984, in add_view + return self.changeform_view(request, None, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1843, in changeform_view + return self._changeform_view(request, object_id, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1894, in _changeform_view + self.save_model(request, new_object, form, not add) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1314, in save_model + obj.save() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/base_user.py", line 65, in save + super().save(*args, **kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 902, in save + self.save_base( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1008, in save_base + updated = self._save_table( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1169, in _save_table + results = self._do_insert( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1210, in _do_insert + return manager._insert( + ^^^^^^^^^^^^^^^^ + 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 1868, in _insert + return query.get_compiler(using=using).execute_sql(returning_fields) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1882, in execute_sql + cursor.execute(sql, params) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 122, in execute + return super().execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 79, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 100, in _execute + with self.db.wrap_database_errors: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 360, in execute + return super().execute(query, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +django.db.utils.IntegrityError: NOT NULL constraint failed: accounts_user.tenant_id +ERROR 2025-08-27 10:44:20,758 basehttp 84854 6204338176 "POST /en/admin/accounts/user/add/ HTTP/1.1" 500 279361 +INFO 2025-08-27 10:44:26,888 basehttp 84854 6204338176 "GET /en/admin/accounts/user/add/ HTTP/1.1" 200 70268 +INFO 2025-08-27 10:44:31,991 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:45:32,989 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:45:43,994 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:46:33,992 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:47:34,992 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:47:43,995 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:48:36,990 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:49:43,991 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:49:43,997 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:51:44,003 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:51:44,012 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:53:43,990 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:53:44,001 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:55:43,995 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:55:44,006 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:57:43,998 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:57:44,009 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:58:41,240 basehttp 84854 6221164544 "GET /en/hr/departments/ HTTP/1.1" 200 125410 +INFO 2025-08-27 10:58:41,251 basehttp 84854 6221164544 "GET /static/plugins/datatables.net-buttons-bs5/css/buttons.bootstrap5.min.css HTTP/1.1" 200 8136 +INFO 2025-08-27 10:58:41,252 basehttp 84854 6204338176 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +INFO 2025-08-27 10:58:41,254 basehttp 84854 6254817280 "GET /static/plugins/datatables.net-buttons-bs5/js/buttons.bootstrap5.min.js HTTP/1.1" 200 1627 +INFO 2025-08-27 10:58:41,254 basehttp 84854 6237990912 "GET /static/plugins/datatables.net-buttons/js/dataTables.buttons.min.js HTTP/1.1" 200 27926 +INFO 2025-08-27 10:58:41,256 basehttp 84854 6221164544 "GET /static/plugins/datatables.net-buttons/js/buttons.print.min.js HTTP/1.1" 200 3073 +INFO 2025-08-27 10:58:41,258 basehttp 84854 6288470016 "GET /static/plugins/datatables.net-buttons/js/buttons.html5.min.js HTTP/1.1" 200 26043 +WARNING 2025-08-27 10:58:41,262 log 84854 6271643648 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:58:41,262 basehttp 84854 6271643648 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:58:41,263 basehttp 84854 6204338176 "GET /static/plugins/jszip/dist/jszip.min.js HTTP/1.1" 200 97630 +INFO 2025-08-27 10:58:41,265 basehttp 84854 6221164544 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +INFO 2025-08-27 10:58:41,271 basehttp 84854 6237990912 "GET /static/plugins/pdfmake/build/vfs_fonts.js HTTP/1.1" 200 828866 +INFO 2025-08-27 10:58:41,273 basehttp 84854 6254817280 "GET /static/plugins/pdfmake/build/pdfmake.min.js HTTP/1.1" 200 1400771 +INFO 2025-08-27 10:58:41,366 basehttp 84854 6254817280 "GET /static/plugins/pdfmake/build/pdfmake.min.js.map HTTP/1.1" 200 4214503 +INFO 2025-08-27 10:58:43,404 basehttp 84854 6254817280 "GET /en/hr/departments/1/update/ HTTP/1.1" 200 41459 +WARNING 2025-08-27 10:58:43,416 basehttp 84854 6237990912 "GET /static/plugins/select2-bootstrap5-theme/select2-bootstrap5.min.css HTTP/1.1" 404 2104 +WARNING 2025-08-27 10:58:43,420 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:58:43,420 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:58:43,503 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:58:56,324 basehttp 84854 6254817280 "POST /en/hr/departments/1/update/ HTTP/1.1" 302 0 +INFO 2025-08-27 10:58:56,338 basehttp 84854 6254817280 "GET /en/hr/departments/1/ HTTP/1.1" 200 53098 +WARNING 2025-08-27 10:58:56,354 basehttp 84854 6221164544 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:58:56,356 basehttp 84854 6204338176 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-08-27 10:58:56,360 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:58:56,360 basehttp 84854 6271643648 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +WARNING 2025-08-27 10:58:56,360 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:58:56,416 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:59:15,200 basehttp 84854 6254817280 "GET /en/hr/employees/53/ HTTP/1.1" 200 34548 +WARNING 2025-08-27 10:59:15,219 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:15,219 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:59:15,258 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 10:59:33,910 basehttp 84854 6288470016 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-08-27 10:59:33,912 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:33,913 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:59:33,946 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:33,946 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:59:35,008 basehttp 84854 6204338176 "GET /static/plugins/select2-bootstrap5-theme/select2-bootstrap5.min.css HTTP/1.1" 404 2104 +WARNING 2025-08-27 10:59:35,010 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:35,010 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:59:35,023 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:35,023 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:59:35,981 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:35,981 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 10:59:35,993 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:35,993 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:59:37,874 basehttp 84854 6254817280 "GET /en/hr/departments/create/ HTTP/1.1" 200 41275 +WARNING 2025-08-27 10:59:37,887 basehttp 84854 6204338176 "GET /static/plugins/select2-bootstrap5-theme/select2-bootstrap5.min.css HTTP/1.1" 404 2104 +WARNING 2025-08-27 10:59:37,891 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:37,891 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:59:38,731 basehttp 84854 6254817280 "GET /en/hr/ HTTP/1.1" 200 42399 +WARNING 2025-08-27 10:59:38,746 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:38,746 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:59:43,984 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:59:47,381 basehttp 84854 6254817280 "GET /en/hr/employees/ HTTP/1.1" 200 130484 +WARNING 2025-08-27 10:59:47,403 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:47,405 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:59:49,119 basehttp 84854 6254817280 "GET / HTTP/1.1" 302 0 +INFO 2025-08-27 10:59:49,141 basehttp 84854 6204338176 "GET /en/ HTTP/1.1" 200 47161 +WARNING 2025-08-27 10:59:49,162 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 10:59:49,163 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 10:59:49,213 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 10:59:49,227 basehttp 84854 6254817280 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 10:59:49,227 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 10:59:49,227 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:00:19,967 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:00:49,213 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:00:49,214 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:00:49,980 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:01:16,047 basehttp 84854 6221164544 "GET /en/analytics/ HTTP/1.1" 200 50066 +WARNING 2025-08-27 11:01:16,067 log 84854 6221164544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:01:16,067 basehttp 84854 6221164544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:01:16,096 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:01:16,097 basehttp 84854 6237990912 "GET /en/analytics/htmx/stats/ HTTP/1.1" 200 2717 +INFO 2025-08-27 11:01:25,980 basehttp 84854 6237990912 "GET /en/analytics/dashboards/ HTTP/1.1" 200 68761 +WARNING 2025-08-27 11:01:26,002 log 84854 6237990912 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:01:26,002 basehttp 84854 6237990912 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:01:26,041 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:01:43,986 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:01:52,218 basehttp 84854 6237990912 "GET /en/analytics/dashboards/506509fe-c23d-43ed-934f-4be64543f79d/ HTTP/1.1" 200 64822 +WARNING 2025-08-27 11:01:52,239 log 84854 6237990912 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:01:52,239 basehttp 84854 6237990912 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:01:52,283 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:02:52,310 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:03:06,991 basehttp 84854 6237990912 "GET /en/analytics/dashboards/506509fe-c23d-43ed-934f-4be64543f79d/ HTTP/1.1" 200 64875 +WARNING 2025-08-27 11:03:07,002 basehttp 84854 6221164544 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:03:07,006 log 84854 6237990912 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:03:07,007 basehttp 84854 6237990912 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:03:07,063 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:03:10,377 basehttp 84854 6237990912 "GET /en/analytics/dashboards/506509fe-c23d-43ed-934f-4be64543f79d/ HTTP/1.1" 200 64875 +INFO 2025-08-27 11:03:10,385 basehttp 84854 6204338176 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-08-27 11:03:10,387 basehttp 84854 6271643648 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +INFO 2025-08-27 11:03:10,390 basehttp 84854 6271643648 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +WARNING 2025-08-27 11:03:10,396 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-08-27 11:03:10,396 basehttp 84854 6288470016 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +WARNING 2025-08-27 11:03:10,396 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:03:10,400 basehttp 84854 6237990912 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-27 11:03:10,404 basehttp 84854 6221164544 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-27 11:03:10,405 basehttp 84854 6288470016 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-27 11:03:10,416 basehttp 84854 6254817280 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-27 11:03:10,421 basehttp 84854 6271643648 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-27 11:03:10,669 basehttp 84854 6271643648 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-08-27 11:03:10,690 basehttp 84854 6271643648 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-27 11:03:10,692 basehttp 84854 6221164544 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-27 11:03:10,693 basehttp 84854 6288470016 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-27 11:03:10,693 basehttp 84854 6237990912 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-27 11:03:10,694 basehttp 84854 6254817280 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-27 11:03:10,695 basehttp 84854 6204338176 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-27 11:03:10,699 basehttp 84854 6237990912 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-27 11:03:10,699 basehttp 84854 6254817280 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-27 11:03:10,699 basehttp 84854 6204338176 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-27 11:03:10,700 basehttp 84854 6221164544 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-27 11:03:10,701 basehttp 84854 6288470016 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-27 11:03:10,701 basehttp 84854 6288470016 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-27 11:03:10,702 basehttp 84854 6254817280 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-27 11:03:10,702 basehttp 84854 6204338176 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-27 11:03:10,702 basehttp 84854 6221164544 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-27 11:03:10,705 basehttp 84854 6271643648 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-27 11:03:10,706 basehttp 84854 6254817280 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-27 11:03:10,706 basehttp 84854 6288470016 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-27 11:03:10,707 basehttp 84854 6204338176 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-27 11:03:10,709 basehttp 84854 6221164544 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-27 11:03:10,711 basehttp 84854 6271643648 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-27 11:03:10,713 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:03:10,727 basehttp 84854 6288470016 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-08-27 11:03:10,734 basehttp 84854 6254817280 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +WARNING 2025-08-27 11:03:10,808 log 84854 6254817280 Not Found: /favicon.ico +WARNING 2025-08-27 11:03:10,809 basehttp 84854 6254817280 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-27 11:03:27,774 basehttp 84854 6254817280 "GET /en/analytics/dashboards/ HTTP/1.1" 200 68814 +WARNING 2025-08-27 11:03:27,787 basehttp 84854 6288470016 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:03:27,791 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:03:27,791 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:03:27,869 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:03:31,751 basehttp 84854 6254817280 "GET /en/analytics/dashboards/98a1fee7-376f-4e6c-a52d-46c07d546132/ HTTP/1.1" 200 64867 +WARNING 2025-08-27 11:03:31,773 basehttp 84854 6237990912 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:03:31,776 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:03:31,776 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:03:31,812 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:03:43,985 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:04:31,829 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:05:31,837 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:05:43,984 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:06:31,839 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:07:31,831 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:07:43,985 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:08:31,838 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:09:31,847 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:09:43,987 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:10:31,849 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:11:31,854 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:11:43,981 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:12:31,859 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:13:31,855 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:13:43,979 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:14:31,865 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:15:31,862 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:15:43,981 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:16:31,867 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:17:31,872 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:17:43,976 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:18:31,878 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:18:49,715 basehttp 84854 6204338176 "GET /en/analytics/dashboards/ HTTP/1.1" 200 68814 +WARNING 2025-08-27 11:18:49,726 basehttp 84854 6221164544 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:18:49,729 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:18:49,730 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:18:49,776 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:18:51,261 basehttp 84854 6204338176 "GET / HTTP/1.1" 302 0 +INFO 2025-08-27 11:18:51,277 basehttp 84854 6221164544 "GET /en/ HTTP/1.1" 200 47231 +WARNING 2025-08-27 11:18:51,287 basehttp 84854 6204338176 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:18:51,291 log 84854 6221164544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:18:51,291 basehttp 84854 6221164544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:18:51,348 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:18:51,358 basehttp 84854 6254817280 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:18:51,360 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:18:51,360 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:19:21,347 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:19:43,972 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:19:51,368 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:19:51,368 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:19:51,369 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:20:21,353 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:20:51,372 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:20:51,373 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:20:51,375 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:21:21,359 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:21:43,983 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:21:51,376 basehttp 84854 6254817280 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:21:51,377 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:21:51,378 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:22:21,362 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:22:51,368 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:22:51,369 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:22:51,371 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:23:21,363 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:23:43,979 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:23:51,353 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:23:51,354 basehttp 84854 6204338176 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:23:51,359 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:24:21,362 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:24:28,056 basehttp 84854 6237990912 "GET /en/ HTTP/1.1" 200 47234 +WARNING 2025-08-27 11:24:28,065 basehttp 84854 6237990912 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:24:28,069 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:24:28,069 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:24:28,142 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:24:28,146 basehttp 84854 6237990912 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:24:28,147 basehttp 84854 6221164544 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:24:28,148 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:24:58,132 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:25:28,142 basehttp 84854 6221164544 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:25:28,143 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:25:28,145 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:25:43,994 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:25:58,137 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:26:26,881 basehttp 84854 6237990912 "GET /en/ HTTP/1.1" 200 47547 +WARNING 2025-08-27 11:26:26,890 basehttp 84854 6237990912 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:26:26,894 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:26:26,895 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:26:26,974 basehttp 84854 6254817280 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:26:26,978 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:26:26,979 basehttp 84854 6237990912 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:26:26,980 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:26:56,950 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:27:26,969 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:27:26,970 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:27:26,971 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:27:43,969 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:27:56,942 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:28:26,973 basehttp 84854 6221164544 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:28:26,973 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:28:26,975 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:28:44,652 basehttp 84854 6237990912 "GET /en/ HTTP/1.1" 200 48089 +WARNING 2025-08-27 11:28:44,664 basehttp 84854 6237990912 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:28:44,670 log 84854 6221164544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:28:44,670 basehttp 84854 6221164544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:28:44,764 basehttp 84854 6237990912 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:28:44,764 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:28:44,767 basehttp 84854 6254817280 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:28:44,768 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:29:14,745 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:29:43,971 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:29:44,722 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:29:44,726 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:29:55,891 basehttp 84854 6254817280 "GET /en/ HTTP/1.1" 200 48608 +WARNING 2025-08-27 11:29:55,902 basehttp 84854 6254817280 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:29:55,908 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:29:55,908 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:29:55,976 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:29:55,982 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:29:55,984 basehttp 84854 6254817280 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:29:55,984 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:30:14,903 basehttp 84854 6221164544 "GET /en/ HTTP/1.1" 200 48606 +WARNING 2025-08-27 11:30:14,911 basehttp 84854 6221164544 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:30:14,915 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:30:14,916 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:30:14,978 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:30:14,991 basehttp 84854 6204338176 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:30:14,991 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:30:14,991 basehttp 84854 6221164544 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:30:41,440 basehttp 84854 6221164544 "GET /en/ HTTP/1.1" 200 47547 +WARNING 2025-08-27 11:30:41,449 basehttp 84854 6221164544 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:30:41,455 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:30:41,455 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:30:41,544 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:30:41,550 basehttp 84854 6237990912 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:30:41,550 basehttp 84854 6221164544 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 11:30:41,551 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:31:11,522 basehttp 84854 6254817280 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:31:41,546 basehttp 84854 6221164544 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:31:41,546 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:31:41,548 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:31:43,896 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:32:11,527 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:32:41,547 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:32:41,548 basehttp 84854 6254817280 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:32:41,549 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:33:11,523 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:33:41,549 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:33:41,550 basehttp 84854 6254817280 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:33:41,552 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:33:43,888 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:34:11,533 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:34:41,552 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:34:41,553 basehttp 84854 6254817280 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:34:41,554 basehttp 84854 6221164544 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:35:11,542 basehttp 84854 6204338176 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:35:41,535 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:35:41,537 basehttp 84854 6221164544 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 11:35:41,540 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:35:43,893 basehttp 84854 6237990912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:36:11,546 basehttp 84854 6237990912 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 11:36:21,546 basehttp 84854 6237990912 "GET /en/emr HTTP/1.1" 301 0 +INFO 2025-08-27 11:36:21,581 basehttp 84854 6221164544 "GET /en/emr/ HTTP/1.1" 200 71695 +WARNING 2025-08-27 11:36:21,606 basehttp 84854 6204338176 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:36:21,610 log 84854 6221164544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:36:21,610 basehttp 84854 6221164544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:36:21,664 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:36:21,671 basehttp 84854 6204338176 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:36:26,239 basehttp 84854 6204338176 "GET /en/emr/encounters/ HTTP/1.1" 200 148270 +WARNING 2025-08-27 11:36:26,251 basehttp 84854 6221164544 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:36:26,254 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:36:26,254 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:36:26,295 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:36:31,449 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:36:31,449 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 11:36:31,463 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:36:31,463 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:36:32,819 basehttp 84854 6204338176 "GET /en/emr/vital-signs/ HTTP/1.1" 200 91434 +WARNING 2025-08-27 11:36:32,834 basehttp 84854 6221164544 "GET /static/plugins/chart.js HTTP/1.1" 404 1967 +WARNING 2025-08-27 11:36:32,838 log 84854 6204338176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:36:32,839 basehttp 84854 6204338176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:36:32,877 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:37:32,885 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:37:43,892 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:38:32,887 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:39:32,896 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:39:43,884 basehttp 84854 6204338176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:39:53,849 basehttp 84854 6204338176 "GET /en/emr/vital-signs/ HTTP/1.1" 200 91448 +INFO 2025-08-27 11:39:53,860 basehttp 84854 6204338176 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +WARNING 2025-08-27 11:39:53,865 log 84854 6221164544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:39:53,865 basehttp 84854 6221164544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:39:53,921 basehttp 84854 6221164544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:40:17,930 basehttp 84854 6221164544 "GET /en/emr/vital-signs/ HTTP/1.1" 200 91448 +INFO 2025-08-27 11:40:17,940 basehttp 84854 6254817280 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-08-27 11:40:17,945 basehttp 84854 6254817280 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +WARNING 2025-08-27 11:40:17,951 log 84854 6221164544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-08-27 11:40:17,951 basehttp 84854 6254817280 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +WARNING 2025-08-27 11:40:17,953 basehttp 84854 6221164544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:40:17,954 basehttp 84854 6204338176 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-08-27 11:40:17,960 basehttp 84854 6288470016 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-08-27 11:40:17,962 basehttp 84854 6221164544 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-08-27 11:40:17,963 basehttp 84854 6271643648 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-08-27 11:40:17,965 basehttp 84854 6237990912 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-08-27 11:40:17,966 basehttp 84854 6254817280 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-08-27 11:40:18,273 basehttp 84854 6254817280 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-08-27 11:40:18,299 basehttp 84854 6254817280 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-08-27 11:40:18,299 basehttp 84854 6271643648 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-08-27 11:40:18,301 basehttp 84854 6237990912 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-08-27 11:40:18,302 basehttp 84854 6221164544 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-08-27 11:40:18,302 basehttp 84854 6288470016 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-08-27 11:40:18,304 basehttp 84854 6271643648 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-08-27 11:40:18,306 basehttp 84854 6204338176 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-08-27 11:40:18,307 basehttp 84854 6221164544 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-08-27 11:40:18,308 basehttp 84854 6237990912 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-08-27 11:40:18,308 basehttp 84854 6288470016 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-08-27 11:40:18,308 basehttp 84854 6204338176 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-08-27 11:40:18,310 basehttp 84854 6254817280 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-08-27 11:40:18,311 basehttp 84854 6271643648 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-08-27 11:40:18,312 basehttp 84854 6237990912 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-08-27 11:40:18,312 basehttp 84854 6221164544 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-08-27 11:40:18,312 basehttp 84854 6254817280 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-08-27 11:40:18,313 basehttp 84854 6204338176 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-08-27 11:40:18,315 basehttp 84854 6254817280 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-08-27 11:40:18,316 basehttp 84854 6221164544 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-08-27 11:40:18,316 basehttp 84854 6271643648 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-08-27 11:40:18,317 basehttp 84854 6204338176 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-08-27 11:40:18,319 basehttp 84854 6237990912 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-08-27 11:40:18,320 basehttp 84854 6288470016 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:40:18,326 basehttp 84854 6254817280 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +WARNING 2025-08-27 11:40:18,460 log 84854 6254817280 Not Found: /favicon.ico +WARNING 2025-08-27 11:40:18,460 basehttp 84854 6254817280 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-08-27 11:41:18,332 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:41:19,907 basehttp 84854 6254817280 "GET /en/emr/vital-signs/?page=2 HTTP/1.1" 200 92758 +WARNING 2025-08-27 11:41:19,938 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:41:19,938 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:41:20,013 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:41:43,892 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:42:20,018 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:43:02,247 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:43:02,258 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:43:02,258 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-08-27 11:43:02,277 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:43:02,278 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:43:02,801 basehttp 84854 6254817280 "GET /en/emr/ HTTP/1.1" 200 71709 +WARNING 2025-08-27 11:43:02,813 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:43:02,813 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:43:02,868 basehttp 84854 6254817280 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +ERROR 2025-08-27 11:43:06,757 log 84854 6254817280 Internal Server Error: /en/emr/problems/ +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 'resolve_problem' not found. 'resolve_problem' is not a valid view function or pattern name. +ERROR 2025-08-27 11:43:06,759 basehttp 84854 6254817280 "GET /en/emr/problems/ HTTP/1.1" 500 260248 +WARNING 2025-08-27 11:43:06,774 log 84854 6254817280 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:43:06,774 basehttp 84854 6254817280 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:43:43,889 basehttp 84854 6254817280 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:45:22,476 autoreload 84854 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/emr/views.py changed, reloading. +INFO 2025-08-27 11:45:22,931 autoreload 16410 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 11:45:25,138 log 16410 6204895232 Internal Server Error: /en/emr/problems/ +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 '' not found. '' is not a valid view function or pattern name. +ERROR 2025-08-27 11:45:25,142 basehttp 16410 6204895232 "GET /en/emr/problems/ HTTP/1.1" 500 259994 +WARNING 2025-08-27 11:45:25,159 log 16410 6204895232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:45:25,159 basehttp 16410 6204895232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:45:35,393 basehttp 16410 6204895232 "GET /en/emr/problems/ HTTP/1.1" 200 104052 +WARNING 2025-08-27 11:45:35,408 log 16410 6204895232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:45:35,409 basehttp 16410 6204895232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:45:35,473 basehttp 16410 6204895232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:45:43,909 basehttp 16410 6204895232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:45:54,420 log 16410 6204895232 Forbidden (CSRF token missing.): /en/emr/problem/150/resolve/ +WARNING 2025-08-27 11:45:54,420 basehttp 16410 6204895232 "POST /en/emr/problem/150/resolve/ HTTP/1.1" 403 2491 +INFO 2025-08-27 11:46:35,485 basehttp 16410 6204895232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:47:35,483 basehttp 16410 6204895232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:47:43,910 basehttp 16410 6204895232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:48:02,258 autoreload 16410 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/emr/views.py changed, reloading. +INFO 2025-08-27 11:48:02,585 autoreload 17569 8466948288 Watching for file changes with StatReloader +INFO 2025-08-27 11:48:06,013 basehttp 17569 6127857664 "GET /en/emr/problems/ HTTP/1.1" 200 104052 +WARNING 2025-08-27 11:48:06,030 log 17569 6127857664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:48:06,030 basehttp 17569 6127857664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:48:06,094 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:48:35,762 basehttp 17569 6127857664 "GET /en/emr/problems/ HTTP/1.1" 200 104971 +WARNING 2025-08-27 11:48:35,780 log 17569 6127857664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:48:35,780 basehttp 17569 6127857664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:48:35,834 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:49:35,848 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:49:43,918 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:50:35,845 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:51:10,986 log 17569 6161510400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:51:10,986 basehttp 17569 6161510400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:51:10,988 basehttp 17569 6161510400 - Broken pipe from ('127.0.0.1', 60415) +INFO 2025-08-27 11:51:10,989 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:51:10,998 log 17569 6144684032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:51:10,998 basehttp 17569 6144684032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:51:10,998 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:51:12,800 basehttp 17569 6144684032 "GET /en/emr/notes/ HTTP/1.1" 200 96796 +WARNING 2025-08-27 11:51:12,817 log 17569 6144684032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:51:12,817 basehttp 17569 6144684032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:51:12,877 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:51:43,906 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:52:03,087 basehttp 17569 6144684032 "GET /en/emr/notes/ HTTP/1.1" 200 98610 +WARNING 2025-08-27 11:52:03,100 log 17569 6144684032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:52:03,100 basehttp 17569 6144684032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:52:03,155 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:53:03,169 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:53:43,900 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:54:03,172 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:54:47,945 log 17569 6161510400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-08-27 11:54:47,948 basehttp 17569 6161510400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:54:47,949 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +WARNING 2025-08-27 11:54:47,971 log 17569 6127857664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-08-27 11:54:47,971 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +WARNING 2025-08-27 11:54:47,971 basehttp 17569 6127857664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-08-27 11:55:17,946 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:55:43,913 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:55:47,938 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:55:47,946 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:56:17,957 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:56:47,952 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:56:47,960 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:57:17,957 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:57:43,911 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:57:47,954 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:57:47,962 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:58:17,960 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:58:47,939 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:58:47,950 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:59:17,966 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 11:59:43,910 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:59:47,951 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 11:59:47,962 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:00:17,972 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:00:47,954 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:00:47,969 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:01:17,976 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:01:43,908 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:01:47,948 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:01:47,970 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:02:17,984 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:02:47,959 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:02:47,978 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:03:17,990 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:03:43,907 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:03:47,961 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:03:47,981 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:04:17,993 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:04:47,958 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:04:47,982 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:05:17,998 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:05:43,908 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:05:47,966 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:05:47,993 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:06:18,003 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:06:47,971 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:06:47,997 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:07:18,006 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:07:43,895 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:07:47,972 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:07:48,000 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:08:18,010 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:08:47,975 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:08:48,008 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:09:18,022 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:09:43,905 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:09:47,970 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:09:48,008 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:10:18,024 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:10:47,982 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:10:48,015 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:11:18,028 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:11:43,907 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:11:47,986 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:11:48,025 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:12:18,037 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:12:47,987 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:12:48,029 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:13:18,050 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:13:43,898 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:13:48,908 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:13:48,917 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:14:19,901 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:15:33,902 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:15:33,910 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:15:43,894 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:16:43,894 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:16:43,904 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:17:43,898 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:17:43,908 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:17:43,910 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:18:43,892 basehttp 17569 6161510400 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:19:43,900 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:19:43,913 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:19:43,913 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:20:14,957 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:20:44,899 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:20:45,895 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:21:16,894 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:21:43,883 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:22:43,899 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:22:43,908 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:23:43,900 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:23:43,912 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:23:43,913 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:24:43,894 basehttp 17569 6161510400 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:25:43,891 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:25:43,901 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:25:43,902 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:26:43,893 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:26:43,900 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:27:43,883 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:27:43,892 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:27:43,893 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:28:43,895 basehttp 17569 6161510400 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:29:43,893 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:29:43,904 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:29:43,906 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:30:43,896 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:30:43,904 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:31:43,912 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:31:43,920 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:32:43,915 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:32:43,923 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:33:43,916 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:33:43,923 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:34:43,922 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:34:43,929 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:35:43,923 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:35:43,929 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:36:43,917 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:36:43,927 basehttp 17569 6144684032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:41:23,169 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 12:41:23,180 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 12:41:23,182 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:19:31,134 basehttp 17569 6161510400 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:19:32,701 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:19:34,122 basehttp 17569 6161510400 "GET /en/ HTTP/1.1" 200 47562 +INFO 2025-08-27 13:19:34,211 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:19:34,212 basehttp 17569 6144684032 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 13:19:34,213 basehttp 17569 13707014144 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 13:19:34,213 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:20:04,189 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:20:23,649 basehttp 17569 6127857664 "GET /en/inpatients/ HTTP/1.1" 200 41779 +INFO 2025-08-27 13:20:23,726 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:20:23,727 basehttp 17569 13707014144 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-27 13:20:23,749 basehttp 17569 6144684032 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-08-27 13:20:31,483 basehttp 17569 6144684032 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109973 +INFO 2025-08-27 13:20:31,565 basehttp 17569 6144684032 "GET /static/plugins/dropzone/dist/min/dropzone.min.js HTTP/1.1" 200 114702 +INFO 2025-08-27 13:20:31,603 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:20:31,724 basehttp 17569 6144684032 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109973 +INFO 2025-08-27 13:20:32,692 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:20:47,887 basehttp 17569 6144684032 "GET /en/emr HTTP/1.1" 301 0 +INFO 2025-08-27 13:20:47,912 basehttp 17569 13707014144 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-08-27 13:20:47,960 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:20:47,965 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:21:05,400 basehttp 17569 6127857664 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-08-27 13:21:05,451 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:21:05,456 basehttp 17569 13707014144 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:21:17,978 basehttp 17569 13707014144 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:21:35,696 basehttp 17569 13707014144 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:21:47,137 basehttp 17569 13707014144 "GET /en/analytics/ HTTP/1.1" 200 50133 +INFO 2025-08-27 13:21:47,186 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:21:47,188 basehttp 17569 6127857664 "GET /en/analytics/htmx/stats/ HTTP/1.1" 200 2717 +INFO 2025-08-27 13:21:47,980 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:21:47,987 basehttp 17569 13707014144 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:21:54,223 basehttp 17569 13707014144 "GET /en/analytics/dashboards/ HTTP/1.1" 200 68828 +INFO 2025-08-27 13:21:54,255 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:22:01,215 basehttp 17569 13707014144 "GET /en/analytics/dashboards/506509fe-c23d-43ed-934f-4be64543f79d/ HTTP/1.1" 200 64889 +INFO 2025-08-27 13:22:01,248 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:22:17,979 basehttp 17569 13707014144 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:22:18,186 basehttp 17569 13707014144 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-08-27 13:22:18,236 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:22:18,242 basehttp 17569 6127857664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-08-27 13:22:24,886 basehttp 17569 6127857664 "GET /en/radiology HTTP/1.1" 301 0 +INFO 2025-08-27 13:22:25,021 basehttp 17569 13707014144 "GET /en/radiology/ HTTP/1.1" 200 29206 +INFO 2025-08-27 13:22:25,074 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:22:25,103 log 17569 6161510400 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-27 13:22:25,104 basehttp 17569 6161510400 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124679 +INFO 2025-08-27 13:22:28,838 basehttp 17569 6161510400 "GET /en/radiology/orders/ HTTP/1.1" 200 88633 +INFO 2025-08-27 13:22:28,871 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:22:32,695 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:22:55,980 log 17569 6161510400 Internal Server Error: /en/radiology/orders/403/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py", line 2128, in get_prep_value + return int(value) + ^^^^^^^^^^ +TypeError: int() argument must be a string, a bytes-like object or a real number, not 'method' + +The above exception was the direct cause of the following exception: + +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/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py", line 359, in get_context_data + study_reports = RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 1588, in build_filter + condition = self.build_lookup(lookups, col, value) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1415, in build_lookup + lookup = lookup_class(lhs, rhs) + ^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/lookups.py", line 38, in __init__ + self.rhs = self.get_prep_lookup() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup + self.rhs = target_field.get_prep_value(self.rhs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py", line 2130, in get_prep_value + raise e.__class__( +TypeError: Field 'id' expected a number but got ]>>. +ERROR 2025-08-27 13:22:55,982 basehttp 17569 6161510400 "GET /en/radiology/orders/403/ HTTP/1.1" 500 150906 +ERROR 2025-08-27 13:23:03,454 log 17569 6161510400 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-27 13:23:03,455 basehttp 17569 6161510400 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124405 +INFO 2025-08-27 13:23:05,246 basehttp 17569 6161510400 "GET /en/radiology/studies/ HTTP/1.1" 200 212380 +INFO 2025-08-27 13:23:05,282 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:23:11,737 basehttp 17569 6161510400 "GET /en/radiology/studies/219/ HTTP/1.1" 200 31565 +INFO 2025-08-27 13:23:11,770 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:23:37,479 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:23:37,518 log 17569 13707014144 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-27 13:23:37,519 basehttp 17569 13707014144 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124405 +INFO 2025-08-27 13:23:43,031 basehttp 17569 13707014144 "GET /en/radiology/ HTTP/1.1" 200 29206 +INFO 2025-08-27 13:23:43,078 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:23:43,104 log 17569 6161510400 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-27 13:23:43,105 basehttp 17569 6161510400 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124679 +INFO 2025-08-27 13:23:47,963 basehttp 17569 6161510400 "GET /en/billing HTTP/1.1" 301 0 +INFO 2025-08-27 13:23:47,988 basehttp 17569 13707014144 "GET /en/billing/ HTTP/1.1" 200 33008 +INFO 2025-08-27 13:23:48,036 basehttp 17569 6144684032 "GET /static/css/saudiriyalsymbol.woff2 HTTP/1.1" 200 720 +INFO 2025-08-27 13:23:48,036 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:23:48,039 basehttp 17569 6127857664 "GET /en/billing/htmx/stats/ HTTP/1.1" 200 4923 +INFO 2025-08-27 13:24:06,675 basehttp 17569 6127857664 "GET /en/billing/ HTTP/1.1" 200 33008 +INFO 2025-08-27 13:24:06,725 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:24:06,729 basehttp 17569 6144684032 "GET /en/billing/htmx/stats/ HTTP/1.1" 200 4923 +INFO 2025-08-27 13:24:09,569 basehttp 17569 6144684032 "GET /en/patients/ HTTP/1.1" 200 139977 +INFO 2025-08-27 13:24:09,625 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:24:09,628 basehttp 17569 6127857664 "GET /en/patients/htmx/patient-stats/ HTTP/1.1" 200 12305 +INFO 2025-08-27 13:24:12,946 basehttp 17569 6127857664 "GET /en/pharmacy HTTP/1.1" 301 0 +INFO 2025-08-27 13:24:12,966 basehttp 17569 6144684032 "GET /en/pharmacy/ HTTP/1.1" 200 34316 +INFO 2025-08-27 13:24:13,012 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:24:13,088 log 17569 13707014144 Internal Server Error: /en/pharmacy/stats/ +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/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-08-27 13:24:13,092 log 17569 6127857664 Internal Server Error: /en/pharmacy/inventory-alerts/ +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/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-08-27 13:24:13,093 basehttp 17569 13707014144 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126668 +ERROR 2025-08-27 13:24:13,093 basehttp 17569 6127857664 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126851 +ERROR 2025-08-27 13:24:27,070 log 17569 6127857664 Internal Server Error: /en/pharmacy/prescriptions/create/ +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 'get_patient_info' not found. 'get_patient_info' is not a valid view function or pattern name. +ERROR 2025-08-27 13:24:27,071 basehttp 17569 6127857664 "GET /en/pharmacy/prescriptions/create/ HTTP/1.1" 500 184495 +ERROR 2025-08-27 13:24:31,879 log 17569 6127857664 Internal Server Error: /en/pharmacy/medications/create/ +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 'validate_ndc' not found. 'validate_ndc' is not a valid view function or pattern name. +ERROR 2025-08-27 13:24:31,880 basehttp 17569 6127857664 "GET /en/pharmacy/medications/create/ HTTP/1.1" 500 179711 +INFO 2025-08-27 13:24:32,702 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:24:36,166 basehttp 17569 6127857664 "GET /en/billing/htmx/stats/ HTTP/1.1" 200 4923 +INFO 2025-08-27 13:24:37,501 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:24:37,533 log 17569 6127857664 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-27 13:24:37,534 basehttp 17569 6127857664 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124405 +INFO 2025-08-27 13:24:42,955 basehttp 17569 6127857664 "GET /en/radiology/ HTTP/1.1" 200 29206 +INFO 2025-08-27 13:24:43,006 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 13:24:43,035 log 17569 13707014144 Internal Server Error: /en/radiology/htmx/stats/ +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/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-08-27 13:24:43,035 basehttp 17569 13707014144 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124679 +INFO 2025-08-27 13:24:59,940 basehttp 17569 13707014144 "GET /en/laboratory HTTP/1.1" 301 0 +ERROR 2025-08-27 13:24:59,992 log 17569 6127857664 Internal Server Error: /en/laboratory/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/laboratory/views.py", line 65, in get_context_data + 'results_completed_today': LabResult.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'result_datetime' into field. Choices are: abnormal_flag, analyzed_by, analyzed_by_id, analyzed_datetime, analyzer, created_at, critical_called, critical_called_datetime, critical_called_to, id, is_critical, order, order_id, pathologist_comments, qc_notes, qc_passed, reference_range, reported_datetime, result_id, result_type, result_unit, result_value, specimen, specimen_id, status, technician_comments, test, test_id, updated_at, verified, verified_by, verified_by_id, verified_datetime +ERROR 2025-08-27 13:24:59,993 basehttp 17569 6127857664 "GET /en/laboratory/ HTTP/1.1" 500 137737 +INFO 2025-08-27 13:25:06,073 basehttp 17569 6127857664 "GET / HTTP/1.1" 302 0 +INFO 2025-08-27 13:25:06,086 basehttp 17569 6144684032 "GET /en/ HTTP/1.1" 200 47562 +INFO 2025-08-27 13:25:06,137 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:25:06,141 basehttp 17569 13707014144 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 13:25:06,142 basehttp 17569 6161510400 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 13:25:06,143 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:25:36,132 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:25:39,322 basehttp 17569 6127857664 "GET / HTTP/1.1" 302 0 +INFO 2025-08-27 13:25:39,335 basehttp 17569 6161510400 "GET /en/ HTTP/1.1" 200 47562 +INFO 2025-08-27 13:25:39,396 basehttp 17569 6161510400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:25:39,396 basehttp 17569 6144684032 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 13:25:39,397 basehttp 17569 6127857664 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 13:25:39,398 basehttp 17569 13707014144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:26:09,385 basehttp 17569 13707014144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:26:32,694 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:26:39,391 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:26:39,392 basehttp 17569 6127857664 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 13:26:39,393 basehttp 17569 6144684032 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:27:09,389 basehttp 17569 6144684032 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:27:39,409 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:27:39,409 basehttp 17569 6127857664 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 13:27:39,411 basehttp 17569 13707014144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:28:09,393 basehttp 17569 13707014144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 13:28:32,692 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:28:39,412 basehttp 17569 13707014144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 13:28:39,412 basehttp 17569 6144684032 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 13:28:39,413 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 14:03:30,335 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 14:22:34,691 basehttp 17569 6144684032 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 14:22:34,691 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:22:35,680 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 14:23:05,674 basehttp 17569 6127857664 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 14:23:27,673 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:23:34,679 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:23:34,682 basehttp 17569 6144684032 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 14:23:35,676 basehttp 17569 6144684032 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 14:23:45,580 basehttp 17569 6144684032 "GET /en/inpatients/ HTTP/1.1" 200 41779 +INFO 2025-08-27 14:23:45,636 basehttp 17569 6144684032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:23:45,637 basehttp 17569 6127857664 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-08-27 14:23:45,660 basehttp 17569 6161510400 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-08-27 14:23:52,946 basehttp 17569 6161510400 "GET /en/integration HTTP/1.1" 301 0 +ERROR 2025-08-27 14:23:52,972 log 17569 6127857664 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 55, in get_context_data + 'recent_executions': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 1563, in build_filter + self.check_related_objects(join_info.final_field, value, join_info.opts) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1372, in check_related_objects + self.check_query_object_type(value, opts, field) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1349, in check_query_object_type + raise ValueError( +ValueError: Cannot query "King Faisal Specialist Hospital - Abha": Must be "IntegrationEndpoint" instance. +ERROR 2025-08-27 14:23:52,974 basehttp 17569 6127857664 "GET /en/integration/ HTTP/1.1" 500 131451 +INFO 2025-08-27 14:24:27,675 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:26:27,660 basehttp 17569 6127857664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:27:12,465 autoreload 17569 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:27:12,928 autoreload 46670 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:27:17,200 log 46670 6188904448 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 55, in get_context_data + 'recent_executions': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'external_system' into field. Choices are: completed_at, correlation_id, endpoint, endpoint_id, error_details, error_message, execution_id, execution_type, external_id, logs, metadata, network_time_ms, processing_time_ms, request_data, request_size_bytes, response_data, response_size_bytes, retry_count, started_at, status, triggered_by, triggered_by_id +ERROR 2025-08-27 14:27:17,201 basehttp 46670 6188904448 "GET /en/integration/ HTTP/1.1" 500 132553 +INFO 2025-08-27 14:28:16,442 autoreload 46670 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:28:16,752 autoreload 47142 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:28:25,471 log 47142 6166966272 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 55, in get_context_data + 'recent_executions': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 1563, in build_filter + self.check_related_objects(join_info.final_field, value, join_info.opts) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1372, in check_related_objects + self.check_query_object_type(value, opts, field) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1349, in check_query_object_type + raise ValueError( +ValueError: Cannot query "King Faisal Specialist Hospital - Abha": Must be "IntegrationEndpoint" instance. +ERROR 2025-08-27 14:28:25,473 basehttp 47142 6166966272 "GET /en/integration/ HTTP/1.1" 500 131588 +INFO 2025-08-27 14:28:27,716 basehttp 47142 6166966272 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:28:49,067 autoreload 47142 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:28:49,409 autoreload 47385 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:28:54,577 log 47385 6199275520 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 57, in get_context_data + ).order_by('-execution_time')[:10], + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._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 'execution_time' into field. Choices are: completed_at, correlation_id, endpoint, endpoint_id, error_details, error_message, execution_id, execution_type, external_id, logs, metadata, network_time_ms, processing_time_ms, request_data, request_size_bytes, response_data, response_size_bytes, retry_count, started_at, status, triggered_by, triggered_by_id +ERROR 2025-08-27 14:28:54,579 basehttp 47385 6199275520 "GET /en/integration/ HTTP/1.1" 500 102462 +INFO 2025-08-27 14:29:20,750 autoreload 47385 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:29:21,079 autoreload 47624 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:29:22,183 log 47624 6135689216 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 59, in get_context_data + 'recent_webhook_executions': WebhookExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'tenant' into field. Choices are: client_ip, correlation_id, error_details, error_message, execution_id, external_id, headers, metadata, method, payload, payload_size_bytes, processed_at, processing_time_ms, query_params, received_at, response_data, response_status, status, user_agent, webhook, webhook_id +ERROR 2025-08-27 14:29:22,185 basehttp 47624 6135689216 "GET /en/integration/ HTTP/1.1" 500 131851 +INFO 2025-08-27 14:30:27,717 basehttp 47624 6135689216 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:30:47,316 autoreload 47624 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:30:47,636 autoreload 48253 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:30:48,723 log 48253 6128758784 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 61, in get_context_data + ).order_by('-started_at')[:5], + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._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 'started_at' into field. Choices are: client_ip, correlation_id, error_details, error_message, execution_id, external_id, headers, metadata, method, payload, payload_size_bytes, processed_at, processing_time_ms, query_params, received_at, response_data, response_status, status, user_agent, webhook, webhook_id +ERROR 2025-08-27 14:30:48,724 basehttp 48253 6128758784 "GET /en/integration/ HTTP/1.1" 500 102160 +INFO 2025-08-27 14:31:17,935 autoreload 48253 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:31:18,265 autoreload 48495 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:31:20,822 log 48495 6202290176 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 63, in get_context_data + 'recent_logs': IntegrationLog.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'tenant' into field. Choices are: category, correlation_id, details, endpoint, endpoint_id, execution, execution_id, external_system, external_system_id, level, log_id, message, metadata, timestamp, user, user_id +ERROR 2025-08-27 14:31:20,824 basehttp 48495 6202290176 "GET /en/integration/ HTTP/1.1" 500 131247 +INFO 2025-08-27 14:31:42,343 autoreload 48495 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:31:42,681 autoreload 48654 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:31:44,916 log 48654 6132068352 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 71, in get_context_data + 'executions_today': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'execution_time' into field. Choices are: completed_at, correlation_id, endpoint, endpoint_id, error_details, error_message, execution_id, execution_type, external_id, logs, metadata, network_time_ms, processing_time_ms, request_data, request_size_bytes, response_data, response_size_bytes, retry_count, started_at, status, triggered_by, triggered_by_id +ERROR 2025-08-27 14:31:44,919 basehttp 48654 6132068352 "GET /en/integration/ HTTP/1.1" 500 132765 +INFO 2025-08-27 14:32:27,695 basehttp 48654 6132068352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:32:36,880 autoreload 48654 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:32:37,216 autoreload 49045 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:32:39,690 log 49045 6124040192 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 71, in get_context_data + 'executions_today': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'tenant' into field. Choices are: completed_at, correlation_id, endpoint, endpoint_id, error_details, error_message, execution_id, execution_type, external_id, logs, metadata, network_time_ms, processing_time_ms, request_data, request_size_bytes, response_data, response_size_bytes, retry_count, started_at, status, triggered_by, triggered_by_id +ERROR 2025-08-27 14:32:39,692 basehttp 49045 6124040192 "GET /en/integration/ HTTP/1.1" 500 133370 +INFO 2025-08-27 14:33:04,349 autoreload 49045 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:33:04,665 autoreload 49285 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:33:05,074 log 49285 6158053376 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 76, in get_context_data + 'successful_executions': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'execution_time' into field. Choices are: completed_at, correlation_id, endpoint, endpoint_id, error_details, error_message, execution_id, execution_type, external_id, logs, metadata, network_time_ms, processing_time_ms, request_data, request_size_bytes, response_data, response_size_bytes, retry_count, started_at, status, triggered_by, triggered_by_id +ERROR 2025-08-27 14:33:05,075 basehttp 49285 6158053376 "GET /en/integration/ HTTP/1.1" 500 133081 +INFO 2025-08-27 14:33:30,686 autoreload 49285 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:33:31,009 autoreload 49455 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:33:33,493 log 49455 6198145024 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 76, in get_context_data + 'successful_executions': IntegrationExecution.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'tenant' into field. Choices are: completed_at, correlation_id, endpoint, endpoint_id, error_details, error_message, execution_id, execution_type, external_id, logs, metadata, network_time_ms, processing_time_ms, request_data, request_size_bytes, response_data, response_size_bytes, retry_count, started_at, status, triggered_by, triggered_by_id +ERROR 2025-08-27 14:33:33,495 basehttp 49455 6198145024 "GET /en/integration/ HTTP/1.1" 500 133761 +INFO 2025-08-27 14:34:01,232 autoreload 49455 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:34:01,561 autoreload 49694 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:34:02,761 log 49694 6198751232 Internal Server Error: /en/integration/ +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/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py", line 91, in get_context_data + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:34:02,763 basehttp 49694 6198751232 "GET /en/integration/ HTTP/1.1" 500 134386 +INFO 2025-08-27 14:34:27,737 basehttp 49694 6198751232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:35:13,184 autoreload 49694 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 14:35:13,511 autoreload 50246 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:35:14,599 log 50246 6167195648 Internal Server Error: /en/integration/ +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 90, in rendered_content + template = self.resolve_template(self.template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 72, in resolve_template + return select_template(template, using=self.using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 42, in select_template + return engine.get_template(template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 79, in get_template + return Template(self.engine.get_template(template_name), self) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/engine.py", line 177, in get_template + template, origin = self.find_template(template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/engine.py", line 159, in find_template + template = loader.get_template(name, skip=skip) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loaders/cached.py", line 57, in get_template + template = super().get_template(template_name, skip) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loaders/base.py", line 28, in get_template + return Template( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 154, in __init__ + self.nodelist = self.compile_nodelist() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 196, in compile_nodelist + nodelist = parser.parse() + ^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 299, in do_extends + nodelist = parser.parse() + ^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 234, in do_block + nodelist = parser.parse(("endblock",)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 962, in do_if + nodelist = parser.parse(("elif", "else", "endif")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 489, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 487, in parse + filter_expression = self.compile_filter(token.contents) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 609, in compile_filter + return FilterExpression(token, self) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 705, in __init__ + filter_func = parser.find_filter(filter_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 615, in find_filter + raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name) +django.template.exceptions.TemplateSyntaxError: Invalid filter: 'mul' +ERROR 2025-08-27 14:35:14,601 basehttp 50246 6167195648 "GET /en/integration/ HTTP/1.1" 500 219641 +INFO 2025-08-27 14:36:27,689 basehttp 50246 6167195648 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:38:12,666 log 50246 6167195648 Internal Server Error: /en/integration/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 1035, in find_library + return parser.libraries[name] + ~~~~~~~~~~~~~~~~^^^^^^ +KeyError: 'custom_filters' + +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 90, in rendered_content + template = self.resolve_template(self.template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 72, in resolve_template + return select_template(template, using=self.using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 42, in select_template + return engine.get_template(template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 79, in get_template + return Template(self.engine.get_template(template_name), self) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/engine.py", line 177, in get_template + template, origin = self.find_template(template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/engine.py", line 159, in find_template + template = loader.get_template(name, skip=skip) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loaders/cached.py", line 57, in get_template + template = super().get_template(template_name, skip) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loaders/base.py", line 28, in get_template + return Template( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 154, in __init__ + self.nodelist = self.compile_nodelist() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 196, in compile_nodelist + nodelist = parser.parse() + ^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 299, in do_extends + nodelist = parser.parse() + ^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 518, in parse + raise self.error(token, e) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 516, in parse + compiled_result = compile_func(self, token) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 1097, in load + lib = find_library(parser, name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 1037, in find_library + raise TemplateSyntaxError( +django.template.exceptions.TemplateSyntaxError: 'custom_filters' is not a registered tag library. Must be one of: +admin_list +admin_modify +admin_urls +allauth +cache +debugger_tags +highlighting +i18n +indent_text +l10n +log +rest_framework +static +syntax_color +tz +widont +ERROR 2025-08-27 14:38:12,673 basehttp 50246 6167195648 "GET /en/integration/ HTTP/1.1" 500 229161 +INFO 2025-08-27 14:38:27,643 basehttp 50246 6167195648 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:39:09,577 autoreload 52084 8466948288 Watching for file changes with StatReloader +ERROR 2025-08-27 14:39:12,198 log 52084 6134984704 Internal Server Error: /en/integration/ +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 'dashboard' not found. 'dashboard' is not a valid view function or pattern name. +ERROR 2025-08-27 14:39:12,199 basehttp 52084 6134984704 "GET /en/integration/ HTTP/1.1" 500 174732 +INFO 2025-08-27 14:39:27,703 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:41:27,651 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:43:27,652 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:45:27,634 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:47:27,644 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:49:27,641 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 14:51:02,602 basehttp 52084 6134984704 "GET /en/integration/ HTTP/1.1" 200 35372 +INFO 2025-08-27 14:51:02,671 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:51:02,687 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:51:02,693 log 52084 6168637440 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:51:02,694 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:51:02,695 basehttp 52084 6168637440 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +INFO 2025-08-27 14:51:27,637 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:51:32,670 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:51:32,671 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:52:02,692 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:52:02,703 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:52:02,709 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:52:02,710 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 14:52:02,711 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:52:32,686 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:52:32,687 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:53:02,693 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:53:02,704 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:53:02,710 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:53:02,711 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:53:02,712 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +INFO 2025-08-27 14:53:27,632 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:53:32,690 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:53:32,691 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:54:02,684 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:54:02,700 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:54:02,706 log 52084 6168637440 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:54:02,707 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:54:02,707 basehttp 52084 6168637440 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 14:54:32,689 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:54:32,690 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:55:02,686 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:55:02,699 log 52084 6134984704 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:55:02,707 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:55:02,707 basehttp 52084 6134984704 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 14:55:02,708 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:55:27,631 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:55:32,693 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:55:32,694 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:56:02,683 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:56:02,701 log 52084 6134984704 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:56:02,708 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:56:02,709 basehttp 52084 6134984704 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 14:56:02,710 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:56:32,696 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:56:32,698 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:57:02,678 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:57:02,700 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:57:02,707 log 52084 6134984704 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:57:02,708 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:57:02,709 basehttp 52084 6134984704 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +INFO 2025-08-27 14:57:27,627 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:57:32,703 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:57:32,704 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:58:02,684 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:58:02,699 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:58:02,701 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 14:58:02,709 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:58:02,710 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 14:58:32,708 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:58:32,709 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:59:02,685 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:59:02,704 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 14:59:02,706 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 14:59:02,714 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:59:02,715 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 14:59:27,626 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 14:59:32,715 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 14:59:32,716 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:00:02,688 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:00:02,699 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:00:02,701 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:00:02,713 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:00:02,714 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 15:00:32,710 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:00:32,711 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:01:03,637 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:01:03,653 log 52084 6134984704 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:01:03,659 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:01:03,660 basehttp 52084 6134984704 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 15:01:03,660 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +INFO 2025-08-27 15:01:27,623 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:01:34,631 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:01:34,632 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:02:27,638 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:02:27,649 log 52084 6134984704 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:02:27,655 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:02:27,656 basehttp 52084 6134984704 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:02:27,656 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 15:03:27,614 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:03:27,616 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:03:27,621 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:03:27,629 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:03:27,630 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +INFO 2025-08-27 15:03:27,632 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:04:27,624 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:04:27,625 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:04:32,176 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:04:32,190 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:04:32,191 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:04:57,627 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:04:57,628 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:05:27,626 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:05:27,636 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:05:27,637 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:05:32,178 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:05:32,188 log 52084 6168637440 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:05:32,190 basehttp 52084 6168637440 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:05:57,621 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:05:57,622 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 15:06:27,632 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:06:27,633 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:06:32,170 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:06:32,179 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:06:32,180 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:06:57,636 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:06:57,637 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:07:27,613 basehttp 52084 6151811072 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:07:27,653 log 52084 6168637440 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:07:27,654 basehttp 52084 6168637440 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:07:32,179 basehttp 52084 6168637440 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:07:32,190 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:07:32,191 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:07:57,641 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:07:57,642 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +ERROR 2025-08-27 15:08:27,628 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:08:27,629 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:08:32,179 basehttp 52084 6134984704 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:08:32,189 log 52084 6151811072 Internal Server Error: /en/integration/htmx/system-health/ +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/integration/views.py", line 877, in system_health + 'healthy_systems': ExternalSystem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'last_health_check_status' into field. Choices are: authentication_config, authentication_type, base_url, configuration, connection_count, created_at, created_by, created_by_id, database_name, description, endpoints, failure_count, health_check_interval, host, is_active, is_healthy, last_health_check, last_used_at, logs, name, port, retry_attempts, retry_delay_seconds, success_count, system_id, system_type, tenant, tenant_id, timeout_seconds, updated_at, vendor, version, webhooks +ERROR 2025-08-27 15:08:32,191 basehttp 52084 6151811072 "GET /en/integration/htmx/system-health/ HTTP/1.1" 500 120108 +ERROR 2025-08-27 15:08:57,635 log 52084 6151811072 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:08:57,640 basehttp 52084 6151811072 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:09:18,020 autoreload 52084 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 15:09:18,458 autoreload 65274 8466948288 Watching for file changes with StatReloader +INFO 2025-08-27 15:09:21,115 basehttp 65274 6341865472 "GET /en/integration/ HTTP/1.1" 200 35372 +INFO 2025-08-27 15:09:21,174 basehttp 65274 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:09:21,179 basehttp 65274 6375518208 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:09:21,186 log 65274 6358691840 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:09:21,188 basehttp 65274 6358691840 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:09:27,613 basehttp 65274 6358691840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:09:51,177 log 65274 6358691840 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:09:51,178 basehttp 65274 6358691840 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:10:21,205 basehttp 65274 6375518208 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:10:21,206 basehttp 65274 6358691840 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:10:21,215 log 65274 6341865472 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(tenant=request.user.tenant).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 'tenant' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:10:21,216 basehttp 65274 6341865472 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119067 +INFO 2025-08-27 15:10:25,852 autoreload 65274 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 15:10:26,200 autoreload 65747 8466948288 Watching for file changes with StatReloader +INFO 2025-08-27 15:10:26,694 basehttp 65747 6122532864 "GET /en/integration/ HTTP/1.1" 200 35372 +INFO 2025-08-27 15:10:26,744 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:10:26,748 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:10:26,756 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:10:26,758 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:10:56,759 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:10:56,761 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:11:26,750 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:11:26,750 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:11:26,757 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:11:26,757 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:11:27,630 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:11:56,762 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:11:56,764 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:12:26,748 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:12:26,753 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:12:26,760 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:12:26,760 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:12:56,766 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:12:56,768 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:13:26,740 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:13:26,740 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:13:26,749 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:13:26,750 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:13:27,621 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:13:56,802 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:13:56,803 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:14:26,746 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:14:26,747 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:14:26,756 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:14:26,757 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:14:56,771 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:14:56,772 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:15:26,746 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:15:26,747 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:15:26,758 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:15:26,759 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:15:27,624 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:15:56,774 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:15:56,776 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:16:26,753 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:16:26,754 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:16:26,764 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:16:26,765 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:16:56,765 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:16:56,766 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:17:26,748 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:17:26,749 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:17:26,763 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:17:26,763 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:17:27,623 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:17:56,781 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:17:56,782 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:18:26,752 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:18:26,753 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:18:26,767 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:18:26,768 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:18:56,783 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:18:56,784 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:19:26,755 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:19:26,756 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:19:26,771 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:19:26,771 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:19:27,620 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:19:56,787 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:19:56,788 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:20:26,758 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:20:26,758 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:20:26,775 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:20:26,776 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:20:56,792 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:20:56,793 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:21:26,756 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:21:26,757 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:21:26,773 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:21:26,774 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:21:27,610 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:21:56,782 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:21:56,783 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:22:26,758 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:22:26,758 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:22:26,776 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:22:26,777 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:22:56,796 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:22:56,798 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:23:26,762 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:23:26,762 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:23:26,780 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:23:26,781 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:23:27,613 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:23:56,805 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:23:56,806 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:24:26,747 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:24:26,748 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:24:26,769 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:24:26,769 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:24:56,784 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:24:56,785 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:25:26,754 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:25:26,754 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:25:26,771 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:25:26,772 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:25:27,592 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:25:56,788 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:25:56,789 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:26:26,757 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:26:26,757 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:26:26,779 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:26:26,780 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:26:56,792 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:26:56,793 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:27:26,747 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:27:26,747 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:27:26,775 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:27:26,776 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:27:27,592 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:27:56,791 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:27:56,791 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:28:26,762 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:28:26,763 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:28:26,784 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:28:26,785 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:28:56,803 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:28:56,804 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:29:26,750 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:29:26,751 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:29:26,789 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:29:26,790 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:29:27,592 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:29:56,808 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:29:56,809 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:30:26,756 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:30:26,756 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:30:26,796 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:30:26,797 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:30:56,815 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:30:56,816 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:31:26,753 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:31:26,753 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:31:26,808 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:31:26,809 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:31:27,585 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:31:56,822 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:31:56,823 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:32:26,769 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:32:26,769 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:32:26,813 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:32:26,814 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:32:56,828 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:32:56,829 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:33:26,769 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:33:26,769 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:33:26,820 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:33:26,821 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:33:27,586 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:33:56,846 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:33:56,847 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:34:26,770 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:34:26,771 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:34:26,823 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:34:26,824 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:34:56,841 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:34:56,842 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:35:26,766 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:35:26,766 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:35:26,829 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:35:26,830 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:35:27,574 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:35:56,836 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:35:56,837 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:36:27,594 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:36:27,594 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:36:27,607 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:36:27,607 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:36:58,589 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:36:58,590 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:37:27,582 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:38:00,581 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:38:00,583 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:38:00,592 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:38:00,593 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:39:27,599 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:39:27,601 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:39:27,609 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:39:27,611 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:39:27,613 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:40:27,601 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:40:27,601 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:40:27,610 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:40:27,611 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:41:27,588 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:41:27,598 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:41:27,600 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:42:27,602 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:42:27,603 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:42:27,614 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:42:27,615 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:43:27,579 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:43:27,588 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +INFO 2025-08-27 15:43:27,591 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:43:27,592 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:44:27,606 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:44:27,606 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:44:27,615 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:44:27,616 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:45:27,599 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:45:27,599 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:45:27,608 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:45:27,609 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:46:27,585 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:46:27,598 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:46:27,599 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:47:27,578 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:47:27,578 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:47:27,586 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:47:27,587 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:47:27,588 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:48:27,582 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:48:27,582 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:48:27,613 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:48:27,613 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:49:27,596 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:49:27,596 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:49:27,605 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:49:27,607 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:49:27,608 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:50:27,569 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:50:27,571 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:51:27,592 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:51:27,592 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:51:27,602 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:51:27,603 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:51:27,604 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:52:27,590 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:52:27,592 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:52:27,601 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:52:27,603 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:53:27,573 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:53:27,583 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:53:27,584 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:54:27,591 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:54:27,591 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:54:27,603 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:54:27,604 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:55:27,600 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:55:27,601 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:55:27,603 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:56:27,596 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:56:27,597 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:56:27,609 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:56:27,610 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 15:57:27,596 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +INFO 2025-08-27 15:57:27,599 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:57:27,600 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:57:27,601 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 15:57:27,608 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 15:58:27,588 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:58:27,589 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:59:27,601 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 15:59:27,602 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 15:59:27,611 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 15:59:27,612 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 15:59:27,616 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:00:27,586 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:00:27,587 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:01:27,597 basehttp 65747 6173011968 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:01:27,601 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:01:27,611 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:01:27,612 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:01:27,613 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:02:27,583 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:02:27,593 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:02:27,594 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:03:27,585 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:03:27,596 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:03:27,597 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:03:27,599 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:04:27,599 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:04:27,602 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:04:27,612 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:04:27,682 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:05:27,589 basehttp 65747 6173011968 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:05:27,590 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:05:27,599 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:05:27,600 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:06:27,577 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:06:27,590 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:06:27,591 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:07:27,580 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:07:27,580 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:07:27,589 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:07:27,590 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:08:27,589 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:08:27,589 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:08:27,597 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:08:27,598 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:09:27,585 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:09:27,585 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:09:27,594 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:09:27,596 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:09:27,597 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:10:27,698 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:10:27,699 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:11:27,719 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:11:27,720 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:11:27,732 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:11:27,733 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:11:27,736 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:12:27,706 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:12:27,719 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:12:27,720 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:13:27,704 basehttp 65747 6173011968 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:13:27,706 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:13:27,716 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:13:27,717 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:14:27,719 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:14:27,722 basehttp 65747 6173011968 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:14:27,731 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:14:27,732 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:15:27,707 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:15:27,717 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:15:27,719 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:15:27,721 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:16:27,712 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:16:27,722 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:16:27,722 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:17:27,716 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:17:27,720 basehttp 65747 6173011968 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:17:27,729 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:17:27,730 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:17:27,732 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:18:27,704 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:18:27,714 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:18:27,715 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:19:27,719 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:19:27,721 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:19:27,730 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:19:27,731 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:20:27,720 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:20:27,720 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:20:27,732 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:20:27,733 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:21:27,714 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:21:27,727 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:21:27,729 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:21:27,731 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:22:27,706 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:22:27,719 log 65747 6173011968 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:22:27,720 basehttp 65747 6173011968 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:23:27,726 basehttp 65747 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:23:27,727 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:23:27,737 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:23:27,738 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:23:27,741 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:24:27,722 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:24:27,725 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:24:27,734 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:24:27,735 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:25:27,727 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:25:27,738 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:25:27,738 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:26:27,730 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:26:27,731 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:26:27,739 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:26:27,740 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:27:27,714 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:27:27,714 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:27:27,724 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:27:27,725 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:27:27,736 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:28:27,728 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:28:27,730 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:29:27,728 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:29:27,728 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:29:27,740 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:29:27,741 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:29:27,743 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:30:27,704 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:30:27,711 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:30:27,712 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:31:27,724 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:31:27,727 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:31:27,736 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:31:27,737 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:32:27,729 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:32:27,733 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:32:27,741 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:32:27,742 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:33:27,715 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:33:27,728 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:33:27,730 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:33:27,732 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:34:27,729 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:34:27,731 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:34:27,740 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:34:27,741 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:35:27,739 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:35:27,739 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:35:27,750 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:35:27,751 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:36:27,718 basehttp 65747 6122532864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:36:27,730 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:36:27,731 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:37:27,708 basehttp 65747 6156185600 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:37:27,714 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:37:27,726 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:37:27,727 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:37:27,729 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:38:27,729 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:38:27,729 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:38:27,737 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:38:27,738 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:39:27,718 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:39:27,728 log 65747 6122532864 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:39:27,729 basehttp 65747 6122532864 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:40:27,782 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +INFO 2025-08-27 16:40:27,783 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:40:27,794 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:40:27,795 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:41:27,815 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:41:27,818 basehttp 65747 6122532864 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:41:27,826 log 65747 6156185600 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:41:27,827 basehttp 65747 6156185600 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:41:27,829 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 16:42:27,797 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:42:27,798 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +INFO 2025-08-27 16:42:56,731 basehttp 65747 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:42:56,732 basehttp 65747 6139359232 "GET /en/integration/htmx/system-health/ HTTP/1.1" 200 396 +ERROR 2025-08-27 16:42:57,797 log 65747 6139359232 Internal Server Error: /en/integration/htmx/stats/ +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/integration/views.py", line 849, in integration_stats + 'total_endpoints': IntegrationEndpoint.objects.filter(endpoint__external_system__tenant=request.user.tenant).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 'endpoint' into field. Choices are: created_at, created_by, created_by_id, data_mappings, description, direction, endpoint_id, endpoint_type, execution_count, executions, external_system, external_system_id, failure_count, headers, is_active, last_executed_at, logs, method, name, parameters, path, request_format, request_mapping, request_schema, response_format, response_mapping, response_schema, success_count, updated_at +ERROR 2025-08-27 16:42:57,798 basehttp 65747 6139359232 "GET /en/integration/htmx/stats/ HTTP/1.1" 500 119561 +ERROR 2025-08-27 16:43:20,411 log 65747 6139359232 Internal Server Error: /en/integration/systems/create/ +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 90, in rendered_content + template = self.resolve_template(self.template_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 72, in resolve_template + return select_template(template, using=self.using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 47, in select_template + raise TemplateDoesNotExist(", ".join(template_name_list), chain=chain) +django.template.exceptions.TemplateDoesNotExist: integration/external_system_form.html +ERROR 2025-08-27 16:43:20,412 basehttp 65747 6139359232 "GET /en/integration/systems/create/ HTTP/1.1" 500 83461 +INFO 2025-08-27 16:43:27,779 basehttp 65747 6139359232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:44:52,337 autoreload 65747 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/integration/views.py changed, reloading. +INFO 2025-08-27 16:44:52,786 autoreload 7366 8466948288 Watching for file changes with StatReloader +INFO 2025-08-27 16:44:53,982 basehttp 7366 6171373568 "GET /en/integration/systems/create/ HTTP/1.1" 200 45558 +INFO 2025-08-27 16:44:54,015 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:45:27,786 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:45:54,016 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:46:54,781 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:47:27,792 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:47:55,784 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:48:56,782 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:49:27,784 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:49:57,787 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:50:58,787 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:51:27,791 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:52:00,785 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:53:27,789 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:53:27,802 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:55:27,801 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:55:27,812 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:56:27,806 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:57:27,827 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:58:27,819 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:59:27,825 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 16:59:27,835 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:01:27,824 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:01:27,835 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:02:27,827 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:03:27,833 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:04:27,828 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:05:27,838 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:05:27,848 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:07:27,830 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:07:27,841 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:08:27,836 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:09:27,837 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:09:27,847 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:11:27,836 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:11:27,848 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:12:27,879 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:12:27,884 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:14:27,836 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:14:27,847 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:15:27,843 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:16:27,835 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:16:27,844 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:18:27,842 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 17:18:27,853 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 18:37:37,701 basehttp 7366 6171373568 "GET / HTTP/1.1" 302 0 +INFO 2025-08-27 18:37:37,717 basehttp 7366 13170143232 "GET /en/ HTTP/1.1" 200 47578 +INFO 2025-08-27 18:37:37,791 basehttp 7366 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +INFO 2025-08-27 18:37:37,801 basehttp 7366 13186969600 "GET /en/htmx/system-health/ HTTP/1.1" 200 1359 +INFO 2025-08-27 18:37:37,802 basehttp 7366 13203795968 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-08-27 18:37:37,804 basehttp 7366 6171373568 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-08-27 18:37:44,579 basehttp 7366 6171373568 "GET /en/pharmacy/ HTTP/1.1" 200 34316 +INFO 2025-08-27 18:37:44,641 basehttp 7366 6171373568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 4625 +ERROR 2025-08-27 18:37:44,701 log 7366 13186969600 Internal Server Error: /en/pharmacy/inventory-alerts/ +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/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-08-27 18:37:44,707 log 7366 13203795968 Internal Server Error: /en/pharmacy/stats/ +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/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 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 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-08-27 18:37:44,710 basehttp 7366 13186969600 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 127125 +ERROR 2025-08-27 18:37:44,711 basehttp 7366 13203795968 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126942 +ERROR 2025-08-27 18:37:47,521 log 7366 13203795968 Internal Server Error: /en/pharmacy/prescriptions/create/ +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 'get_patient_info' not found. 'get_patient_info' is not a valid view function or pattern name. +ERROR 2025-08-27 18:37:47,527 basehttp 7366 13203795968 "GET /en/pharmacy/prescriptions/create/ HTTP/1.1" 500 184495 diff --git a/radiology/__pycache__/views.cpython-312.pyc b/radiology/__pycache__/views.cpython-312.pyc index 941ba120..aca4ec2b 100644 Binary files a/radiology/__pycache__/views.cpython-312.pyc and b/radiology/__pycache__/views.cpython-312.pyc differ diff --git a/radiology/views.py b/radiology/views.py index a807968f..db3963db 100644 --- a/radiology/views.py +++ b/radiology/views.py @@ -593,7 +593,7 @@ class ImagingSeriesListView(LoginRequiredMixin, ListView): """ model = ImagingSeries template_name = 'radiology/series/imaging_series_list.html' - context_object_name = 'imaging_series' + context_object_name = 'series' paginate_by = 25 def get_queryset(self): @@ -742,7 +742,7 @@ class RadiologyReportListView(LoginRequiredMixin, ListView): paginate_by = 25 def get_queryset(self): - queryset = RadiologyReport.objects.filter(tenant=self.request.user.tenant) + queryset = RadiologyReport.objects.filter(study__tenant=self.request.user.tenant) # Search functionality search = self.request.GET.get('search') @@ -771,7 +771,7 @@ class RadiologyReportListView(LoginRequiredMixin, ListView): queryset = queryset.filter(radiologist_id=radiologist_id) return queryset.select_related( - 'study__order__patient', 'radiologist', 'template' + 'study__imaging_order__patient', 'radiologist', 'template_used' ).order_by('-created_at') def get_context_data(self, **kwargs): @@ -788,10 +788,10 @@ class RadiologyReportDetailView(LoginRequiredMixin, DetailView): """ model = RadiologyReport template_name = 'radiology/reports/radiology_report_detail.html' - context_object_name = 'radiology_report' + context_object_name = 'report' def get_queryset(self): - return RadiologyReport.objects.filter(tenant=self.request.user.tenant) + return RadiologyReport.objects.filter(study__tenant=self.request.user.tenant) class RadiologyReportCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView): @@ -810,7 +810,7 @@ class RadiologyReportCreateView(LoginRequiredMixin, PermissionRequiredMixin, Cre response = super().form_valid(form) # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=self.request.user, action='RADIOLOGY_REPORT_CREATED', model='RadiologyReport', diff --git a/static/css/custom.css b/static/css/custom.css index fb133785..e988ec3c 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -14,6 +14,17 @@ font-weight: bold; } +.avatar-sm { + width: 32px; + height: 32px; + font-size: 0.75rem; + color: #fff; +} + +.bg-gradient { + background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); +} + .metric-card { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); color: white; diff --git a/templates/base.html b/templates/base.html index 7f8dc388..b2c99b40 100644 --- a/templates/base.html +++ b/templates/base.html @@ -31,6 +31,7 @@ + diff --git a/templates/core/dashboard.html b/templates/core/dashboard.html index 694b8320..528eab8a 100644 --- a/templates/core/dashboard.html +++ b/templates/core/dashboard.html @@ -55,18 +55,19 @@
-
-
-
-
- Recent Activity -
- - View All - -
-
-
+
+
+

{{ _("Recent Activity")}}

+
+ {{ _("View All")}} + + + + + +
+
+
{% for log in recent_audit_logs %}
diff --git a/templates/emr/clinical_note_list.html b/templates/emr/clinical_note_list.html index 4571d5df..c1f8336a 100644 --- a/templates/emr/clinical_note_list.html +++ b/templates/emr/clinical_note_list.html @@ -168,33 +168,7 @@ {% if is_paginated %} - + {% include 'partial/pagination.html' %} {% endif %}
diff --git a/templates/emr/problem_list.html b/templates/emr/problem_list.html index 43d523a6..868c9aee 100644 --- a/templates/emr/problem_list.html +++ b/templates/emr/problem_list.html @@ -160,33 +160,7 @@ {% if is_paginated %} - + {% include 'partial/pagination.html' %} {% endif %}
diff --git a/templates/emr/vital_signs/vital_signs_list.html b/templates/emr/vital_signs/vital_signs_list.html index 086edf84..7e4e6ea1 100644 --- a/templates/emr/vital_signs/vital_signs_list.html +++ b/templates/emr/vital_signs/vital_signs_list.html @@ -4,11 +4,11 @@ {% block title %}Vital Signs - EMR{% endblock %} {% block css %} - - - - - + + + + + {% endblock %} {% block content %} @@ -319,13 +319,13 @@ {% endblock %} {% block js %} - - - - - - - + + + + + + +