akvo.rest.views.indicator_period_aggregation_job module

class akvo.rest.views.indicator_period_aggregation_job.IndicatorPeriodAggregationJobViewSet(**kwargs)[source]

Bases: ReadOnlyPublicProjectViewSet

basename = None
description = None
detail = None
filter_backends = (<class 'rest_framework.filters.OrderingFilter'>, <class 'akvo.rest.filters.RSRGenericFilterBackend'>)
name = None
ordering = ['updated_at']
permission_classes = (<class 'akvo.rest.viewsets.SafeMethodsPermissions'>, <class 'rest_framework.permissions.IsAuthenticated'>)
project_relation = 'period__indicator__result__project__'
queryset
reschedule(request, **kwargs)[source]

Puts a new job in the queue for the indicator period

The old job is left in order to have a history

serializer_class

alias of IndicatorPeriodAggregationJobSerializer

suffix = None
akvo.rest.views.indicator_period_aggregation_job.recalculate_project_aggregation(request, *args, **kwargs)[source]