Skip to content

Commit

Permalink
Add type field to VersionSerializer
Browse files Browse the repository at this point in the history
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
  • Loading branch information
humitos committed Dec 20, 2017
1 parent 6fd8282 commit eb264ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readthedocs/restapi/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class Meta(object):
'identifier', 'verbose_name',
'active', 'built',
'downloads',
'type',
)


Expand Down

0 comments on commit eb264ee

Please sign in to comment.