Traceback (most recent call last):
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/django/utils/decorators.py", line 43, in _wrapper
return bound_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/django/views/decorators/debug.py", line 89, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/dj_rest_auth/registration/views.py", line 42, in dispatch
return super().dispatch(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/generics.py", line 190, in post
return self.create(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/dj_rest_auth/registration/views.py", line 63, in create
serializer.is_valid(raise_exception=True)
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/serializers.py", line 227, in is_valid
self._validated_data = self.run_validation(self.initial_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/serializers.py", line 426, in run_validation
value = self.to_internal_value(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/.env/lib/python3.11/site-packages/rest_framework/serializers.py", line 485, in to_internal_value
validated_value = validate_method(validated_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vgeffer/Desktop/strom-website/webstrom-backend/user/serializers.py", line 190, in validate_profile
if not profile['gdpr']:
~~~~~~~^^^^^^^^
KeyError: 'gdpr'
Stacktrace: