akvo.rest.serializers.disaggregation module

class akvo.rest.serializers.disaggregation.DisaggregationReadOnlySerializer(*args, **kwargs)[source]

Bases: BaseRSRSerializer

class Meta[source]

Bases: object

fields = ('id', 'category', 'category_id', 'type', 'type_id', 'value', 'numerator', 'denominator')
model

alias of Disaggregation

get_denominator(obj)[source]
get_numerator(obj)[source]
get_value(obj)[source]

Given the incoming primitive data, return the value for this field that should be validated and transformed to a native value.

class akvo.rest.serializers.disaggregation.DisaggregationSerializer(*args, **kwargs)[source]

Bases: BaseRSRSerializer

class Meta[source]

Bases: object

fields = ('id', 'update', 'dimension_value', 'value', 'numerator', 'denominator', 'incomplete_data', 'category', 'category_id', 'type', 'type_id', 'created_at', 'last_modified_at')
model

alias of Disaggregation