diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-21 10:30:46 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-21 10:30:46 +0200 |
commit | 174185bd45abb7c99cf28432a227660023d53632 (patch) | |
tree | 6aca21979a07d1c0a5e50a767c760240049d43d7 /docs | |
parent | 175abe950c9f08dc9f66de21b20e7f4df5454517 (diff) | |
download | gitlab-174185bd45abb7c99cf28432a227660023d53632.tar.gz |
Add support for user avatar upload
Fixes #308
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 ====================== |