aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/models/users.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-04 02:30:52 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-04 02:30:52 +0100
commitd61d25f7494142b22478326d2cecf6ff50067af8 (patch)
tree97dd8d02d07e3f5ae252ed92f3c67f7ba9e77e76 /pygithub3/models/users.py
parentFix parse_args (diff)
downloadpython-github3-d61d25f7494142b22478326d2cecf6ff50067af8.tar.xz
python-github3-d61d25f7494142b22478326d2cecf6ff50067af8.zip
Improve models
Now the models maps itself from json encoded Then we can inherit it and change behaviour to use polymorphism into resources ;)
Diffstat (limited to 'pygithub3/models/users.py')
-rw-r--r--pygithub3/models/users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygithub3/models/users.py b/pygithub3/models/users.py
index 0ceef90..c94a704 100644
--- a/pygithub3/models/users.py
+++ b/pygithub3/models/users.py
@@ -15,8 +15,8 @@ class Plan(Model):
class User(Model):
""" """
- maps = {'plan': Plan}
- dates = ('created_at', )
+ _maps = {'plan': Plan}
+ _dates = ('created_at', )
def __str__(self):
return '<User (%s)>' % getattr(self, 'login', '')