update rules

This commit is contained in:
2025-07-05 21:13:06 -03:00
parent afc4057480
commit ea6fb1cbb0
3 changed files with 36 additions and 19 deletions

View File

@@ -52,4 +52,11 @@ class Enrollment(BaseModel):
*args,
**kwargs,
) -> dict[str, Any]:
return super().model_dump(exclude={'user': {'email_verified'}}, *args, **kwargs)
return super().model_dump(
exclude={
'user': {'email_verified'},
'course': {'cert', 'access_period'},
},
*args,
**kwargs,
)