Changes between Initial Version and Version 1 of Ticket #35848, comment 8
- Timestamp:
- Oct 17, 2024, 7:56:38 AM (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35848, comment 8
initial v1 1 1 The error falls from serializer.is_valid (it is rest_framework.exceptions.ValidationError): 2 2 3 {{{ 3 4 >>> from directories.views import MyModelViewSet 4 5 >>> viewset = MyModelViewSet() … … 10 11 File "....venv\Lib\site-packages\rest_framework\serializers.py", line 231, in is_valid 11 12 raise ValidationError(self.errors) 12 rest_framework.exceptions.ValidationError: {'name': [ErrorDetail(string='my model with this Name already exists.', code='unique')]} 13 rest_framework.exception 14 s.ValidationError: {'name': [ErrorDetail(string='my model with this Name already exists.', code='unique')]} 15 }}}