diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-04 17:25:41 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-04 17:25:41 -0800 |
commit | 87b8f1c710c7c94ed9c1b040f75c1601591a214b (patch) | |
tree | 522ff18b3ce486efbf7b3b900855e1f597c8eb77 | |
parent | f79491a4989902d376a1a26fe0f070345e6c9d62 (diff) | |
download | fatcat-87b8f1c710c7c94ed9c1b040f75c1601591a214b.tar.gz fatcat-87b8f1c710c7c94ed9c1b040f75c1601591a214b.zip |
to_json() method for fatcatrelease
-rw-r--r-- | python/fatcat/release_model.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/fatcat/release_model.py b/python/fatcat/release_model.py index a584c00b..aa0d2d9f 100644 --- a/python/fatcat/release_model.py +++ b/python/fatcat/release_model.py @@ -1,5 +1,6 @@ from fatcat_client.models import ReleaseEntity +from fatcat_client.api_client import ApiClient class FatcatRelease(ReleaseEntity): """ @@ -83,3 +84,7 @@ class FatcatRelease(ReleaseEntity): contrib_names.append(c.raw_name) t['contrib_names'] = contrib_names return t + + def to_json(self): + ac = ApiClient() + return ac.sanitize_for_serialization(self) |