• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

akvo / akvo-rsr / 36d6dc01-6726-4ee7-a9dd-ce35c506949e

pending completion
36d6dc01-6726-4ee7-a9dd-ce35c506949e

push

semaphore-ci

web-flow
Merge pull request #5298 from akvo/cleanup-rest-endpoints

Cleanup REST endpoints

34 of 34 new or added lines in 11 files covered. (100.0%)

17025 of 25071 relevant lines covered (67.91%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/akvo/rest/serializers/disaggregation_contribution.py
1
# -*- coding: utf-8 -*-
2

3
# Akvo RSR is covered by the GNU Affero General Public License.
4
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
5
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
6

7
from rest_framework import serializers
×
8
from akvo.rest.serializers.rsr_serializer import BaseRSRSerializer
×
9
from akvo.rsr.models import DisaggregationContribution
×
10

11

12
class DisaggregationContributionSerializer(BaseRSRSerializer):
×
13
    contributing_project = serializers.SerializerMethodField()
×
14

15
    def get_contributing_project(self, obj):
×
16
        return {'id': obj.contributing_project.pk, 'title': obj.contributing_project.title}
×
17

18
    class Meta:
×
19
        model = DisaggregationContribution
×
20
        fields = ('value', 'numerator', 'denominator', 'contributing_project')
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc