@@ -24,8 +24,8 @@ class PullDestination(models.GitHubCore):
2424 http://developer.github.com/v3/pulls/#get-a-single-pull-request
2525 """
2626
27- def __init__ (self ,dest ,direction ):
28- super (PullDestination ,self ).__init__ (dest )
27+ def __init__ (self ,dest ,direction , session = None ):
28+ super (PullDestination ,self ).__init__ (dest , session )
2929from .repos .repo import ShortRepository
3030#: Direction of the merge with respect to this destination
3131self .direction = direction
@@ -36,7 +36,7 @@ def __init__(self, dest, direction):
3636#: :class:`User <github3.users.User>` representing the owner
3737self .user = None
3838if dest .get ('user' ):
39- self .user = users .ShortUser (dest .get ('user' ),None )
39+ self .user = users .ShortUser (dest .get ('user' ),self )
4040#: SHA of the commit at the head
4141self .sha = dest .get ('sha' )
4242self ._repo_name = ''
@@ -118,7 +118,7 @@ def _update_attributes(self, pull):
118118self ._api = pull ['url' ]
119119
120120#: Base of the merge
121- self .base = PullDestination (pull ['base' ],'Base' )
121+ self .base = PullDestination (pull ['base' ],'Base' , self )
122122
123123#: Body of the pull request message
124124self .body = pull ['body' ]
@@ -136,7 +136,7 @@ def _update_attributes(self, pull):
136136self .created_at = self ._strptime_attribute (pull ,'created_at' )
137137
138138#: The new head after the pull request
139- self .head = PullDestination (pull ['head' ],'Head' )
139+ self .head = PullDestination (pull ['head' ],'Head' , self )
140140
141141#: The unique id of the pull request
142142self .id = self ._get_attribute (pull ,'id' )
@@ -175,7 +175,7 @@ def _update_attributes(self, pull):
175175
176176#: :class:`User <github3.users.ShortUser>` object representing the
177177#: creator of the pull request
178- self .user = users .ShortUser (pull ['user' ])
178+ self .user = users .ShortUser (pull ['user' ], self )
179179
180180# This is only present if the PR has been assigned.
181181#: :class:`User <github3.users.ShortUser>` object representing the