data_models: fix a validation error description

This commit is contained in:
Sina Atalay committed 2024-02-28 21:17:45 +01:00
1 parent fc0f254051
commit 39729f9907
1 file changed
+2 -2
+2 -2
View File
@@ -227,8 +227,8 @@ class EntryBase(RenderCVBaseModel):
elif not start_date_is_provided and end_date_is_provided:
raise ValueError(
'"end_date" is provided in of the entries, but "start_date" is not.'
' Either provide both "start_date" and "end_date" or provide "date".',
'"end_date" is provided, but "start_date" is not. Either provide both'
' "start_date" and "end_date" or provide "date".',
"start_date", # this is the location of the error
"", # this supposed to be the value of the error
)