fix parent + url

master
Marek Isalski 3 years ago
parent d18c3c11d8
commit 99983471ae

@ -189,7 +189,7 @@ class APIObject(object):
else: else:
path = "/%s/" % (cls.URLPART) path = "/%s/" % (cls.URLPART)
if parent: if parent:
return (parent + path).replace("//", "/") return (parent.url() + path).replace("//", "/")
return path return path
def url(self, parent=None): def url(self, parent=None):

Loading…
Cancel
Save