diff --git a/app/models/models.py b/app/models/models.py index 8245f75..a0b4b95 100644 --- a/app/models/models.py +++ b/app/models/models.py @@ -127,7 +127,8 @@ def check_invariants(self): # join_date if not isinstance(self.join_date, str): raise ValueError("Field 'join_date' must be a string.") - _validate_date_string(self.join_date, "join_date") + if self.join_date != "": + _validate_date_string(self.join_date, "join_date") # exit_date if not isinstance(self.exit_date, str):