• 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

72.22
/apps/activities/models.py
1
from autoslug import AutoSlugField
1✔
2
from django.db import models
1✔
3
from django.utils.translation import gettext_lazy as _
1✔
4
from django_ckeditor_5.fields import CKEditor5Field
1✔
5

6
from adhocracy4 import transforms as html_transforms
1✔
7
from adhocracy4.modules import models as module_models
1✔
8

9

10
class Activity(module_models.Item):
1✔
11
    slug = AutoSlugField(populate_from="name", unique=True)
1✔
12
    name = models.CharField(max_length=120, verbose_name=_("Title"))
1✔
13
    highlight = models.CharField(
1✔
14
        max_length=120,
15
        verbose_name=_("Highlighted Info"),
16
        help_text=_(
17
            "Highlight important information like the time "
18
            "or location of your face-to-face event"
19
        ),
20
    )
21
    description = CKEditor5Field(
1✔
22
        config_name="collapsible-image-editor", verbose_name=_("Description")
23
    )
24

25
    def get_absolute_url(self):
1✔
26
        return self.project.get_absolute_url()
×
27

28
    def save(self, update_fields=None, *args, **kwargs):
1✔
29
        self.description = html_transforms.clean_html_field(
×
30
            self.description, "collapsible-image-editor"
31
        )
32
        if update_fields:
×
33
            update_fields = {"description"}.union(update_fields)
×
34
        super().save(update_fields=update_fields, *args, **kwargs)
×
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