aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/release_model.py5
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)