Working on event registration and related.
This commit is contained in:
@@ -20,7 +20,7 @@ class Event_Badge_Base(BaseModel):
|
||||
default_factory = lambda:secrets.token_urlsafe(default_num_bytes),
|
||||
)
|
||||
id: Optional[int] = Field(
|
||||
#alias = 'event_badge_id'
|
||||
alias = 'event_badge_id'
|
||||
)
|
||||
# account_id_random: Optional[str]
|
||||
# account_id: Optional[int]
|
||||
@@ -32,20 +32,28 @@ class Event_Badge_Base(BaseModel):
|
||||
person_id: Optional[int]
|
||||
|
||||
pronoun: Optional[str]
|
||||
informal_name: Optional[str]
|
||||
given_name: Optional[str]
|
||||
family_name: Optional[str]
|
||||
full_name: Optional[str]
|
||||
display_name: Optional[str] # Actual name shown on badge and other "public" areas
|
||||
|
||||
email: Optional[str]
|
||||
|
||||
degree: Optional[str]
|
||||
degrees: Optional[str] # Do we want this?
|
||||
credentials: Optional[str]
|
||||
title: Optional[str]
|
||||
|
||||
affiliation: Optional[str]
|
||||
affiliations: Optional[str] # Do we want this?
|
||||
affiliation_name: Optional[str] # Actual affiliation name(s) shown on badge and other "public" areas
|
||||
|
||||
city: Optional[str]
|
||||
county: Optional[str] # NOTE: This is for a county within a state or province
|
||||
state_province: Optional[str]
|
||||
country: Optional[str]
|
||||
location_name: Optional[str] # Actual location name shown on badge and other "public" areas
|
||||
|
||||
# NOTE: More badge fields need to be added here once things are cleaned up
|
||||
|
||||
@@ -107,6 +115,7 @@ class Event_Badge_Base(BaseModel):
|
||||
|
||||
class Config:
|
||||
underscore_attrs_are_private = True
|
||||
allow_population_by_field_name = True
|
||||
fields = base_fields
|
||||
|
||||
Event_Badge_Base.update_forward_refs()
|
||||
|
||||
Reference in New Issue
Block a user