allow empty release
This commit is contained in:
@@ -10,5 +10,7 @@ class Deal(pt.Model):
|
|||||||
title: str = pt.Field(description="Title of the deal.")
|
title: str = pt.Field(description="Title of the deal.")
|
||||||
url: str = pt.Field(description="URL to the deal.")
|
url: str = pt.Field(description="URL to the deal.")
|
||||||
date: datetime.date = pt.Field(description="Day the deal was listed.")
|
date: datetime.date = pt.Field(description="Day the deal was listed.")
|
||||||
release: datetime.date = pt.Field(description="Release date.")
|
release: datetime.date | None = pt.Field(
|
||||||
|
description="Release date.", allow_missing=True
|
||||||
|
)
|
||||||
price: float = pt.Field(description="Price of the deal in EUR.")
|
price: float = pt.Field(description="Price of the deal in EUR.")
|
||||||
|
|||||||
Reference in New Issue
Block a user