Skip to content

Commit eb264ee

Browse files
committed
Add type field to VersionSerializer
Since the `type` wasn't in the response when syncing version and retrieving this data the `APIVersion.type` was returning `UNKNOWN` and then the `APIVersion.commit_name` was incorrect. By adding the `type` to the API response the `Version` it's completed. #3203
1 parent 6fd8282 commit eb264ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readthedocs/restapi/serializers.py

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class Meta(object):
7373
'identifier', 'verbose_name',
7474
'active', 'built',
7575
'downloads',
76+
'type',
7677
)
7778

7879

0 commit comments

Comments
 (0)