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

liqd / adhocracy-plus / 25327419454

04 May 2026 03:20PM UTC coverage: 42.415% (-43.8%) from 86.168%
25327419454

Pull #3075

github

web-flow
Merge 06ba30015 into 15731e8ac
Pull Request #3075: [ST-1932] Breadcrumb Navigation

0 of 31 new or added lines in 1 file covered. (0.0%)

3376 existing lines in 150 files now uncovered.

3302 of 7785 relevant lines covered (42.41%)

0.42 hits per line

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

0.0
/apps/documents/api.py
UNCOV
1
from rest_framework import viewsets
×
UNCOV
2
from rest_framework.mixins import CreateModelMixin
×
3

UNCOV
4
from adhocracy4.api.mixins import ModuleMixin
×
UNCOV
5
from adhocracy4.api.permissions import ViewSetRulesPermission
×
6

UNCOV
7
from .models import Chapter
×
UNCOV
8
from .serializers import DocumentSerializer
×
9

10

UNCOV
11
class DocumentViewSet(ModuleMixin, CreateModelMixin, viewsets.GenericViewSet):
×
UNCOV
12
    serializer_class = DocumentSerializer
×
UNCOV
13
    permission_classes = (ViewSetRulesPermission,)
×
14

UNCOV
15
    def get_permission_object(self):
×
UNCOV
16
        return self.module
×
17

UNCOV
18
    def get_serializer_context(self):
×
UNCOV
19
        context = super().get_serializer_context()
×
UNCOV
20
        context.update(
×
21
            {
22
                "module_pk": int(self.module_pk),
23
            }
24
        )
UNCOV
25
        return context
×
26

UNCOV
27
    def get_queryset(self):
×
UNCOV
28
        return Chapter.objects.filter(module_id=self.module_pk)
×
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