WARNING 2022-01-21 12:26:29,141 log 1325673 139624934876992 Not Found: /apple-touch-icon-precomposed.png
WARNING 2022-01-21 12:26:29,248 log 1325673 139624934876992 Not Found: /apple-touch-icon.png
WARNING 2022-01-21 12:26:37,766 study_subject 1325673 139624934876992 There are 1 chunks in some parts of this screening_number: |ND0099|.
WARNING 2022-01-21 12:26:37,766 study_subject 1325673 139624934876992 There are 1 chunks in some parts of this screening_number: |ND0100|.
ERROR 2022-01-21 12:31:12,528 view_utils 1325673 139624934876992 When handling POST request for url '/locations/6/delete' exception occurred
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 47, in dispatch
return super().dispatch(*args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 218, in post
return self.delete(request, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 43, in delete
return super().delete(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 213, in delete
self.object.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Location' because they are referenced through protected foreign keys: 'Appointment.location'.", {<Appointment: 2022-02-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-18 11:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-11 10:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-06 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-13 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-20 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-27 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-03 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-10 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-17 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-24 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-05 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-12 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-19 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-26 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-23 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-30 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-07 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-14 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-21 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-28 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-30 12:00 (120 min) | SCHEDULED>, <Appointment: #01 | 2022-01-28 09:00 (30 min) | Awa Wrobelek | SCHEDULED>, <Appointment: 2022-01-25 09:00 (30 min) | SCHEDULED>})
ERROR 2022-01-21 12:31:12,666 log 1325673 139624934876992 Internal Server Error: /locations/6/delete
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 47, in dispatch
return super().dispatch(*args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 218, in post
return self.delete(request, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 43, in delete
return super().delete(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 213, in delete
self.object.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Location' because they are referenced through protected foreign keys: 'Appointment.location'.", {<Appointment: 2022-02-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-18 11:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-11 10:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-06 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-13 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-20 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-27 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-03 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-10 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-17 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-24 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-05 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-12 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-19 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-26 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-23 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-30 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-07 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-14 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-21 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-28 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-30 12:00 (120 min) | SCHEDULED>, <Appointment: #01 | 2022-01-28 09:00 (30 min) | Awa Wrobelek | SCHEDULED>, <Appointment: 2022-01-25 09:00 (30 min) | SCHEDULED>})
ERROR 2022-01-21 12:31:36,399 view_utils 1325673 139624934876992 When handling POST request for url '/locations/6/delete' exception occurred
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 47, in dispatch
return super().dispatch(*args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 218, in post
return self.delete(request, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 43, in delete
return super().delete(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 213, in delete
self.object.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Location' because they are referenced through protected foreign keys: 'Appointment.location'.", {<Appointment: 2022-02-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-18 11:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-11 10:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-06 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-13 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-20 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-27 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-03 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-10 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-17 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-24 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-05 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-12 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-19 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-26 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-23 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-30 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-07 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-14 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-21 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-28 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-30 12:00 (120 min) | SCHEDULED>, <Appointment: #01 | 2022-01-28 09:00 (30 min) | Awa Wrobelek | SCHEDULED>, <Appointment: 2022-01-25 09:00 (30 min) | SCHEDULED>})
ERROR 2022-01-21 12:31:36,508 log 1325673 139624934876992 Internal Server Error: /locations/6/delete
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 47, in dispatch
return super().dispatch(*args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 218, in post
return self.delete(request, *args, **kwargs)
File "/usr/lib/smasch/web/views/location.py", line 43, in delete
return super().delete(request, *args, **kwargs)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/views/generic/edit.py", line 213, in delete
self.object.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Location' because they are referenced through protected foreign keys: 'Appointment.location'.", {<Appointment: 2022-02-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-18 11:00 (120 min) | SCHEDULED>, <Appointment: 2022-02-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-11 10:00 (120 min) | SCHEDULED>, <Appointment: 2022-03-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-04-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-06 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-13 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-20 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-05-27 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-03 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-10 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-17 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-06-24 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-01 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-08 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-15 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-22 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-07-29 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-05 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-12 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-19 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-08-26 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-23 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-09-30 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-07 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-14 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-21 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-10-28 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-04 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-11 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-18 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-11-25 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-02 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-09 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-16 12:00 (120 min) | SCHEDULED>, <Appointment: 2022-12-30 12:00 (120 min) | SCHEDULED>, <Appointment: #01 | 2022-01-28 09:00 (30 min) | Awa Wrobelek | SCHEDULED>, <Appointment: 2022-01-25 09:00 (30 min) | SCHEDULED>})
ERROR 2022-01-21 12:32:55,466 view_utils 1325673 139624934876992 When handling GET request for url '/equipment_and_rooms/rooms/delete/3' exception occurred
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/rooms.py", line 52, in rooms_delete
the_room.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Room' because they are referenced through protected foreign keys: 'Appointment.room'.", {<Appointment: 2022-01-26 09:00 (20 min) | SCHEDULED>})
ERROR 2022-01-21 12:33:44,437 view_utils 1325673 139624934876992 When handling GET request for url '/equipment_and_rooms/rooms/delete/3' exception occurred
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/rooms.py", line 52, in rooms_delete
the_room.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Room' because they are referenced through protected foreign keys: 'Appointment.room'.", {<Appointment: 2022-01-26 09:00 (20 min) | SCHEDULED>})
ERROR 2022-01-21 12:33:44,441 log 1325673 139624934876992 Internal Server Error: /equipment_and_rooms/rooms/delete/3
Traceback (most recent call last):
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/smasch/web/decorators.py", line 109, in func_wrapper
return func(thing, *args, **kwargs)
File "/usr/lib/smasch/web/views/rooms.py", line 52, in rooms_delete
the_room.delete()
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/base.py", line 946, in delete
collector.collect([self], keep_parents=keep_parents)
File "/usr/lib/smasch/env/lib/python3.8/site-packages/django/db/models/deletion.py", line 302, in collect
raise ProtectedError(
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'Room' because they are referenced through protected foreign keys: 'Appointment.room'.", {<Appointment: 2022-01-26 09:00 (20 min) | SCHEDULED>})
INFO 2022-01-21 12:45:02,242 redcap_connector 1477822 139707825325888 Redcap connector is down