akvo.rest.serializers.indicator_period_disaggregation module

class akvo.rest.serializers.indicator_period_disaggregation.IndicatorPeriodDisaggregationLiteSerializer(*args, **kwargs)[source]

Bases: BaseRSRSerializer

class Meta[source]

Bases: object

fields = ('id', 'dimension_name', 'dimension_value', 'value', 'numerator', 'denominator')
model

alias of IndicatorPeriodDisaggregation

get_dimension_name(obj)[source]
get_dimension_value(obj)[source]
class akvo.rest.serializers.indicator_period_disaggregation.IndicatorPeriodDisaggregationReadOnlySerializer(*args, **kwargs)[source]

Bases: BaseRSRSerializer

class Meta[source]

Bases: object

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

alias of IndicatorPeriodDisaggregation

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.