cdh.rest.server.serializers module

class cdh.rest.server.serializers.ModelDisplaySerializer(*args, **kwargs)[source]

Bases: ModelSerializer

Extension of ModelSerializer which will automatically add the django display method of a field, if present.

get_fields()[source]

Return the dict of field names -> field instances that should be used for self.fields when instantiating the serializer.