rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 4 forks source link

filter error in epilepsy12 user logs #963

Closed eatyourpeas closed 2 months ago

eatyourpeas commented 2 months ago
[2024-01-10 15:31:46,933] ERROR [django.request:241] Internal Server Error: /organisation/257/filtered_epilepsy12_user_list
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/app/epilepsy12/decorator.py", line 415, in wrapper
    return view(request, *args, **kwargs)
  File "/app/epilepsy12/decorator.py", line 232, in wrapper
    return view(request, *args, **kwargs)
  File "/app/epilepsy12/views/user_management_views.py", line 92, in epilepsy12_user_list
    parent_trust = organisation.organisation.trust.name
AttributeError: 'Organisation' object has no attribute 'organisation'