aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/users.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-11-14 15:39:57 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-05 21:08:57 +0100
commit5a4e3ff1e2a0f2ed451bc191c1d44bcd694b8e75 (patch)
tree69c596a6ef19bf237e99bbe00aa7c3e534cb5e0b /mediagoblin/gmg_commands/users.py
parent5b5b67cd5c82e743f7c656616c92841fae31b36f (diff)
downloadmediagoblin-5a4e3ff1e2a0f2ed451bc191c1d44bcd694b8e75.tar.lz
mediagoblin-5a4e3ff1e2a0f2ed451bc191c1d44bcd694b8e75.tar.xz
mediagoblin-5a4e3ff1e2a0f2ed451bc191c1d44bcd694b8e75.zip
Dot-Notation for Users.username
Diffstat (limited to 'mediagoblin/gmg_commands/users.py')
-rw-r--r--mediagoblin/gmg_commands/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/users.py b/mediagoblin/gmg_commands/users.py
index b437e839..e8426272 100644
--- a/mediagoblin/gmg_commands/users.py
+++ b/mediagoblin/gmg_commands/users.py
@@ -50,7 +50,7 @@ def adduser(args):
else:
# Create the user
entry = db.User()
- entry['username'] = unicode(args.username.lower())
+ entry.username = unicode(args.username.lower())
entry['email'] = unicode(args.email)
entry['pw_hash'] = auth_lib.bcrypt_gen_password_hash(args.password)
entry['status'] = u'active'