data_models: fix a validation error description

This commit is contained in:
Sina Atalay 2024-02-28 21:17:45 +01:00
parent fc0f254051
commit 39729f9907
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ class EntryBase(RenderCVBaseModel):
elif not start_date_is_provided and end_date_is_provided: elif not start_date_is_provided and end_date_is_provided:
raise ValueError( raise ValueError(
'"end_date" is provided in of the entries, but "start_date" is not.' '"end_date" is provided, but "start_date" is not. Either provide both'
' Either provide both "start_date" and "end_date" or provide "date".', ' "start_date" and "end_date" or provide "date".',
"start_date", # this is the location of the error "start_date", # this is the location of the error
"", # this supposed to be the value of the error "", # this supposed to be the value of the error
) )