diff options
author | 2012-02-04 02:30:52 +0100 | |
---|---|---|
committer | 2012-02-04 02:30:52 +0100 | |
commit | d61d25f7494142b22478326d2cecf6ff50067af8 (patch) | |
tree | 97dd8d02d07e3f5ae252ed92f3c67f7ba9e77e76 /pygithub3/models/users.py | |
parent | Fix parse_args (diff) | |
download | python-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.py | 4 |
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', '') |