From eb264eedcc15ee7891207b926ae8562dc3c28298 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 20 Dec 2017 12:10:31 -0500 Subject: [PATCH] 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. https://github.com/rtfd/readthedocs.org/issues/3203 --- readthedocs/restapi/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/readthedocs/restapi/serializers.py b/readthedocs/restapi/serializers.py index 63616ea19d8..7aac3dd18d2 100644 --- a/readthedocs/restapi/serializers.py +++ b/readthedocs/restapi/serializers.py @@ -73,6 +73,7 @@ class Meta(object): 'identifier', 'verbose_name', 'active', 'built', 'downloads', + 'type', )