Skip to content

Commit

Permalink
[#233] Check boh
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 19, 2024
1 parent e912771 commit 01f82ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import datetime

from rest_framework.serializers import ValidationError
from django.core.exceptions import ValidationError
from django.utils.translation import gettext as _

from rest_framework import status
Expand Down
9 changes: 6 additions & 3 deletions src/openklant/components/klantinteracties/models/partijen.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ def clean(self):
self.partij_identificator_code_soort_object_id,
self.partij_identificator_object_id,
)
partij_validator.validate_code_object_type()
partij_validator.validate_code_soort_object_id()
partij_validator.validate_object_id()
try:
partij_validator.validate_code_object_type()
partij_validator.validate_code_soort_object_id()
partij_validator.validate_object_id()
except ValidationError as err:
raise ValidationError("eeeeeeeeeeeeeeeeeeeeeee")
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from rest_framework.serializers import ValidationError
from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _

from .constants import (
Expand Down

0 comments on commit 01f82ee

Please sign in to comment.