Remove 'public-' prefix

This commit is contained in:
modulos 2017-05-23 10:36:57 +02:00
parent e782290eeb
commit 021a8e784d

View file

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