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

liqd / arpas / 16053354611

03 Jul 2025 02:17PM UTC coverage: 88.682% (-0.5%) from 89.218%
16053354611

push

github

partizipation
apps:comments add comments app add urls und add in settings+ recreated migration cause old one dodi worked for me

0 of 33 new or added lines in 5 files covered. (0.0%)

8 existing lines in 2 files now uncovered.

6190 of 6980 relevant lines covered (88.68%)

0.89 hits per line

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

0.0
/apps/comments/api.py
NEW
1
from django.contrib.contenttypes.models import ContentType
×
2

NEW
3
from adhocracy4.comments_async.api import CommentViewSet
×
NEW
4
from apps.comments.models import ARComment
×
NEW
5
from apps.comments.serializers import ARCommentSerializer
×
6

7
# from adhocracy4.comments_async.serializers import ThreadListSerializer
8
# from adhocracy4.comments.serializers import ThreadSerializer
9

10

NEW
11
class ARCommentViewSet(CommentViewSet):
×
NEW
12
    serializer_class = ARCommentSerializer
×
13

NEW
14
    def get_serializer_class(self):
×
NEW
15
        return ARCommentSerializer
×
16

NEW
17
    def get_queryset(self):
×
NEW
18
        child_comment_content_type_id = ContentType.objects.get_for_model(ARComment)
×
NEW
19
        comments = (
×
20
            ARComment.objects.filter(object_pk=self.object_pk)
21
            .filter(content_type_id=self.content_type.pk)
22
            .annotate_positive_rating_count()
23
            .annotate_negative_rating_count()
24
        )
NEW
25
        if self.action == "list":
×
NEW
26
            return comments.exclude(
×
27
                content_type_id=child_comment_content_type_id
28
            ).order_by("-created")
NEW
29
        return comments
×
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

© 2026 Coveralls, Inc