Skip to content

Commit

Permalink
fix: messages can not be sent if application is already in a batch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Dec 1, 2023
1 parent ed7b2f8 commit 113c426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/benefit/messages/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def validate(self, data): # noqa: C901

if (
application.status not in self.APPLICANT_MESSAGE_ALLOWED_STATUSES
or application.batch
or application.archived
):
raise serializers.ValidationError(
Expand Down

0 comments on commit 113c426

Please sign in to comment.