wio
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Annotated, Literal
|
||||
from typing import Annotated, Any, Literal
|
||||
from uuid import uuid4
|
||||
|
||||
from layercake.extra_types import CnpjStr, CpfStr, NameStr
|
||||
@@ -45,3 +45,11 @@ class Enrollment(BaseModel):
|
||||
course: Course
|
||||
progress: int = Field(default=0, ge=0, le=100)
|
||||
status: Literal['PENDING'] = 'PENDING'
|
||||
|
||||
def model_dump(
|
||||
self,
|
||||
exclude=None,
|
||||
*args,
|
||||
**kwargs,
|
||||
) -> dict[str, Any]:
|
||||
return super().model_dump(exclude={'user': {'email_verified'}}, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user