add - parent to org
This commit is contained in:
@@ -1051,3 +1051,180 @@ TypeError: string indices must be integers, not 'str'
|
||||
[2025-11-03 16:43:57,776] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-03 16:50:08,668] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authorization\api\v1\serializers.py changed, reloading.
|
||||
[2025-11-03 16:50:10,599] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-04 11:27:20,977] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-04 11:27:45,062] WARNING django.request | IP: 127.0.0.1 | Path: /auth/api/v1/user-relations/ | Unauthorized: /auth/api/v1/user-relations/
|
||||
[2025-11-04 11:27:45,069] WARNING django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 401 191
|
||||
[2025-11-04 11:27:54,003] WARNING django.request | IP: 127.0.0.1 | Path: /auth/api/v1/user-relations/ | Unauthorized: /auth/api/v1/user-relations/
|
||||
[2025-11-04 11:27:54,003] WARNING django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 401 191
|
||||
[2025-11-04 11:28:01,947] WARNING django.request | IP: 127.0.0.1 | Path: /auth/api/v1/user-relations/ | Unauthorized: /auth/api/v1/user-relations/
|
||||
[2025-11-04 11:28:01,948] WARNING django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 401 191
|
||||
[2025-11-04 11:28:18,668] ERROR django.request | IP: 127.0.0.1 | Path: /auth/api/v1/user-relations/ | Internal Server Error: /auth/api/v1/user-relations/
|
||||
Traceback (most recent call last):
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
|
||||
response = get_response(request)
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
|
||||
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper
|
||||
return view_func(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view
|
||||
return self.dispatch(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch
|
||||
response = self.handle_exception(exc)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception
|
||||
response = exception_handler(exc, context)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch
|
||||
response = handler(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authorization\api\v1\api.py", line 184, in list
|
||||
return self.get_paginated_response(serializer.data)
|
||||
^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation
|
||||
self.child.to_representation(item) for item in iterable
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authorization\api\v1\serializers.py", line 147, in to_representation
|
||||
representation['organization'] = auth_serializer.OrganizationSerializer(instance.organization).data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 573, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authentication\api\v1\serializers\serializer.py", line 315, in to_representation
|
||||
representation['type'] = OrganizationTypeSerializer(instance.type).data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 574, in data
|
||||
return ReturnDict(ret, serializer=self)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\utils\serializer_helpers.py", line 19, in __init__
|
||||
super().__init__(*args, **kwargs)
|
||||
TypeError: 'NoneType' object is not iterable
|
||||
[2025-11-04 11:28:18,741] ERROR django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 500 160184
|
||||
[2025-11-04 11:33:09,364] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\api\v1\serializers\serializer.py changed, reloading.
|
||||
[2025-11-04 11:33:11,077] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-04 11:33:17,696] ERROR django.request | IP: 127.0.0.1 | Path: /auth/api/v1/user-relations/ | Internal Server Error: /auth/api/v1/user-relations/
|
||||
Traceback (most recent call last):
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
|
||||
response = get_response(request)
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
|
||||
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper
|
||||
return view_func(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view
|
||||
return self.dispatch(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch
|
||||
response = self.handle_exception(exc)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception
|
||||
response = exception_handler(exc, context)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch
|
||||
response = handler(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authorization\api\v1\api.py", line 184, in list
|
||||
return self.get_paginated_response(serializer.data)
|
||||
^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation
|
||||
self.child.to_representation(item) for item in iterable
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authorization\api\v1\serializers.py", line 147, in to_representation
|
||||
representation['organization'] = auth_serializer.OrganizationSerializer(instance.organization).data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 573, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authentication\api\v1\serializers\serializer.py", line 315, in to_representation
|
||||
representation['type'] = OrganizationTypeSerializer(instance.type).data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 574, in data
|
||||
return ReturnDict(ret, serializer=self)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\utils\serializer_helpers.py", line 19, in __init__
|
||||
super().__init__(*args, **kwargs)
|
||||
TypeError: 'NoneType' object is not iterable
|
||||
[2025-11-04 11:33:17,765] ERROR django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 500 160074
|
||||
[2025-11-04 11:33:19,699] ERROR django.request | IP: 127.0.0.1 | Path: /auth/api/v1/user-relations/ | Internal Server Error: /auth/api/v1/user-relations/
|
||||
Traceback (most recent call last):
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
|
||||
response = get_response(request)
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
|
||||
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\django\views\decorators\csrf.py", line 65, in _view_wrapper
|
||||
return view_func(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\viewsets.py", line 125, in view
|
||||
return self.dispatch(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 515, in dispatch
|
||||
response = self.handle_exception(exc)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 472, in handle_exception
|
||||
response = exception_handler(exc, context)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\views.py", line 512, in dispatch
|
||||
response = handler(request, *args, **kwargs)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authorization\api\v1\api.py", line 184, in list
|
||||
return self.get_paginated_response(serializer.data)
|
||||
^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 797, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 716, in to_representation
|
||||
self.child.to_representation(item) for item in iterable
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authorization\api\v1\serializers.py", line 147, in to_representation
|
||||
representation['organization'] = auth_serializer.OrganizationSerializer(instance.organization).data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 573, in data
|
||||
ret = super().data
|
||||
^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 251, in data
|
||||
self._data = self.to_representation(self.instance)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Project\Rasaddam_Backend\apps\authentication\api\v1\serializers\serializer.py", line 315, in to_representation
|
||||
representation['type'] = OrganizationTypeSerializer(instance.type).data
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\serializers.py", line 574, in data
|
||||
return ReturnDict(ret, serializer=self)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "D:\Software\env\Lib\site-packages\rest_framework\utils\serializer_helpers.py", line 19, in __init__
|
||||
super().__init__(*args, **kwargs)
|
||||
TypeError: 'NoneType' object is not iterable
|
||||
[2025-11-04 11:33:19,746] ERROR django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 500 160074
|
||||
[2025-11-04 11:33:31,355] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\api\v1\serializers\serializer.py changed, reloading.
|
||||
[2025-11-04 11:33:33,772] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-04 11:33:41,241] INFO django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 200 16968
|
||||
[2025-11-04 11:33:45,466] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\api\v1\serializers\serializer.py changed, reloading.
|
||||
[2025-11-04 11:33:49,074] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
|
||||
[2025-11-04 11:33:54,631] INFO django.server | IP: - | Path: - | "GET /auth/api/v1/user-relations/?role= HTTP/1.1" 200 17248
|
||||
|
||||
Reference in New Issue
Block a user