Skip to content

Commit

Permalink
fix: adjust credit transfer agreement date error message (#2469)
Browse files Browse the repository at this point in the history
Improve the error message shown when a user tries to propose a credit transfer with an empty Agreement Date field.

Previous message: 'Error! Date has wrong format. Use one of these formats instead: YYYY-MM-DD.'
New message: 'Error! Please enter a valid date in the Agreement Date field: YYYY-MM-DD.'
  • Loading branch information
hamed-valiollahi committed Oct 31, 2023
1 parent eae15f6 commit 938b663
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/api/serializers/CreditTrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ class Meta:
"the transaction."
}
},
'date_of_written_agreement': {
'error_messages': {
'invalid': "Please enter a valid date in the Agreement Date field: YYYY-MM-DD."
}
},
'trade_effective_date': {
'required': False
}
Expand Down

0 comments on commit 938b663

Please sign in to comment.