Skip to content

Commit

Permalink
Fix not allowing blank details on mass reservation cancel endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Nov 19, 2024
1 parent b18956e commit 23efc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class ApplicationSectionReservationCancellationInputSerializer(NestingModelSeria
instance: ApplicationSection

cancel_reason = serializers.IntegerField(required=True)
cancel_details = serializers.CharField(required=False)
cancel_details = serializers.CharField(required=False, allow_blank=True)

class Meta:
model = ApplicationSection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ class ReservationSeriesDenyInputSerializer(NestingModelSerializer):
instance: RecurringReservation

deny_reason = serializers.IntegerField(required=True)
handling_details = serializers.CharField(required=False)
handling_details = serializers.CharField(required=False, allow_blank=True)

class Meta:
model = RecurringReservation
Expand Down

0 comments on commit 23efc37

Please sign in to comment.