diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/gl_objects/users.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/gl_objects/users.rst b/docs/gl_objects/users.rst index a1d6dd6..fa966d1 100644 --- a/docs/gl_objects/users.rst +++ b/docs/gl_objects/users.rst @@ -61,6 +61,13 @@ Block/Unblock a user:: user.block() user.unblock() +Set the avatar image for a user:: + + # the avatar image can be passed as data (content of the file) or as a file + # object opened in binary mode + user.avatar = open('path/to/file.png', 'rb') + user.save() + User custom attributes ====================== |