0f56d00959
* added example for custom user attributes * simplified example Co-authored-by: croudsarabi <constantin.roudsarabi@andrena.de>
250 B
250 B
user
: The current user. This may beNone
if there is no contextual user. See (User)
Example:
return {
"custom_attribute": request.user.attributes.get("custom_attribute", "default"),
}