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

liqd / adhocracy-plus / 18908688697

29 Oct 2025 12:59PM UTC coverage: 44.622% (-44.5%) from 89.135%
18908688697

Pull #2986

github

web-flow
Merge 1dfde8ee7 into 445e1d498
Pull Request #2986: Draft: Speed up Github Ci Tests

3012 of 6750 relevant lines covered (44.62%)

0.45 hits per line

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

46.15
/apps/contrib/views.py
1
from django.shortcuts import redirect
1✔
2
from django.views import generic
1✔
3

4

5
class ComponentLibraryView(generic.base.TemplateView):
1✔
6
    template_name = "a4_candy_contrib/component_library.html"
1✔
7

8

9
class CanonicalURLDetailView(generic.DetailView):
1✔
10
    """DetailView redirecting to the canonical absolute url of an object."""
11

12
    def get(self, request, *args, **kwargs):
1✔
13
        self.object = self.get_object()
×
14

15
        # Redirect to the absolute url if it differs from the current path
16
        if hasattr(self.object, "get_absolute_url"):
×
17
            absolute_url = self.object.get_absolute_url()
×
18
            if absolute_url != request.path:
×
19
                return redirect(absolute_url)
×
20

21
        context = self.get_context_data(object=self.object)
×
22
        return self.render_to_response(context)
×
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