Skip to content

Commit

Permalink
[#53] Removing unused call to get_next_klantnummer()
Browse files Browse the repository at this point in the history
  • Loading branch information
alextreme committed Sep 5, 2023
1 parent e79587d commit ffca144
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/openklant/components/klanten/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,6 @@ def __init__(self, *args, **kwargs):
self.fields[custom_field].help_text
)

def validate_klantnummer(self, value):
if not value:
value = str(Klant.objects.get_next_klantnummer())
return value

def validate(self, attrs):
validated_attrs = super().validate(attrs)
subject = validated_attrs.get("subject", None)
Expand Down

0 comments on commit ffca144

Please sign in to comment.