Updates to presenter for new fields with JSON

This commit is contained in:
Scott Idem
2024-02-29 14:26:51 -05:00
parent 5cafd35bda
commit 929a2749f7
4 changed files with 23 additions and 9 deletions

View File

@@ -90,18 +90,27 @@ class Event_Presenter_Base(BaseModel):
website_url: Optional[str]
phone_li_json: Optional[Union[Json, None]]
# For social media in a JSON object format. The Aether standard field names should be used. Examples: url, url_text, icon, etc.
social_li_json: Optional[Union[Json, None]]
tagline: Optional[str]
biography: Optional[str]
picture_path: Optional[str]
picture_path: Optional[str] # Start using image_li_json instead
picture_bg_color: Optional[str]
# For image files only in a JSON object format. The Aether standard field names should be used. Examples: url, url_text, alt_text, width, height, size (in bytes), etc.
image_li_json: Optional[Union[Json, None]] # "headshot" is probably the most common
# media_li_json: Optional[Union[Json, None]]
role: Optional[str]
file_count: Optional[int]
# Comments from the presenter. This is for internal use only.
comments: Optional[str]
enable: Optional[bool]
enable_from: Optional[datetime.datetime] = None
enable_to: Optional[datetime.datetime] = None