aboutsummaryrefslogtreecommitdiffstats
path: root/github3/models
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-09 02:18:29 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-09 02:18:29 +0100
commit5604cff7cd6094ca61971eb973838e6c4ffeb992 (patch)
treec87f4e23f72c1c9391c1024087a2dd5460e9d6c4 /github3/models
parentNew design. Merge develop branch (diff)
downloadpython-github3-5604cff7cd6094ca61971eb973838e6c4ffeb992.tar.xz
python-github3-5604cff7cd6094ca61971eb973838e6c4ffeb992.zip
Fix bugs
Diffstat (limited to 'github3/models')
-rw-r--r--github3/models/orgs.py2
-rw-r--r--github3/models/repos.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/github3/models/orgs.py b/github3/models/orgs.py
index 840b51a..5e66c35 100644
--- a/github3/models/orgs.py
+++ b/github3/models/orgs.py
@@ -18,7 +18,7 @@ class Org(BaseResource):
'following', 'total_private_repos', 'owned_private_repos',
'private_gists', 'disk_usage', 'collaborators'],
'dates': ['created_at'],
- 'maps': {'plan': plan}
+ 'maps': {'plan': Plan}
}
def __repr__(self):
diff --git a/github3/models/repos.py b/github3/models/repos.py
index ba6ac33..d1b7b75 100644
--- a/github3/models/repos.py
+++ b/github3/models/repos.py
@@ -22,8 +22,8 @@ class Repo(BaseResource):
'maps': {
'owner': User,
'organization': Org,
- 'parent': 'self',
- 'source': 'self',
+ 'parent': self.__class__,
+ 'source': self.__class__,
}
}