forked from mirrors/bookwyrm
Fixes bug in verifying readthrough dates
This commit is contained in:
parent
63b21fe1c2
commit
f5de0dd3c9
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ class ReadThroughForm(CustomForm):
|
|||
cleaned_data = super().clean()
|
||||
start_date = cleaned_data.get("start_date")
|
||||
finish_date = cleaned_data.get("finish_date")
|
||||
if start_date > finish_date:
|
||||
if start_date and finish_date and start_date > finish_date:
|
||||
self.add_error(
|
||||
"finish_date", _("Reading finish date cannot be before start date.")
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue