Merge pull request #265 from Modulos/remove_prefix

Remove 'public-' prefix
This commit is contained in:
Levi Velázquez 2017-05-23 11:09:56 -05:00 committed by GitHub
commit 194dfe5064

View file

@ -73,8 +73,7 @@ class VirtualMachineTemplateSerializer(serializers.Serializer):
return int(obj.template.memory)/1024 return int(obj.template.memory)/1024
def get_name(self, obj): def get_name(self, obj):
# TODO: Filter public- away return obj.name.strip('public-')
return obj.name
class VirtualMachineSerializer(serializers.Serializer): class VirtualMachineSerializer(serializers.Serializer):
"""Serializer to map the virtual machine instance into JSON format.""" """Serializer to map the virtual machine instance into JSON format."""