def getvalue(self, key, default=None):
        if key in self:
            value = self[key]
            if type(value) is type([]):
                return map(attrgetter('value'), value)
            else:
                return value.value
        else:
            return default
Create a field representing the object's own URL.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/cgi.py/FieldStorage.getvalue--crossover with--dataset/ETHPy150Open stackdio/stackdio/stackdio/core/serializers.py/StackdioHyperlinkedModelSerializer.build_url_field