Work on event, event_session, event_presentation, event_presenter, user, and person routes, methods, and models

This commit is contained in:
Scott Idem
2021-08-21 16:04:17 -04:00
parent 67b8435e08
commit 824bdd29a2
19 changed files with 631 additions and 80 deletions

View File

@@ -21,7 +21,7 @@ class Event_File_Base(BaseModel):
default_factory = lambda:secrets.token_urlsafe(default_num_bytes),
)
id: Optional[int] = Field(
#alias = 'event_file_id'
alias = 'event_file_id'
)
hosted_file_id_random: Optional[str]
@@ -130,6 +130,7 @@ class Event_File_Base(BaseModel):
class Config:
underscore_attrs_are_private = True
allow_population_by_field_name = True
fields = base_fields
@validator('for_id_random', always=True)