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

liqd / adhocracy-plus / 28178848451

25 Jun 2026 02:50PM UTC coverage: 41.038% (-45.5%) from 86.506%
28178848451

Pull #3127

github

web-flow
Merge 45990f4e4 into 28ae9021c
Pull Request #3127: app/projects: New Styling for Module Page

3439 of 8380 relevant lines covered (41.04%)

0.41 hits per line

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

87.5
/apps/topicprio/forms.py
1
from django import forms
1✔
2
from django.utils.translation import gettext_lazy as _
1✔
3
from django_ckeditor_5.fields import CKEditor5Field
1✔
4

5
from adhocracy4.categories.forms import CategorizableFieldMixin
1✔
6
from adhocracy4.images.validators import ImageAltTextValidator
1✔
7
from adhocracy4.labels.mixins import LabelsAddableFieldMixin
1✔
8

9
from . import models
1✔
10

11

12
class TopicForm(
1✔
13
    CategorizableFieldMixin,
14
    LabelsAddableFieldMixin,
15
    forms.ModelForm,
16
):
17
    description = CKEditor5Field(
1✔
18
        config_name="image-editor", validators=[ImageAltTextValidator()]
19
    )
20

21
    def __init__(self, *args, **kwargs):
1✔
22
        super().__init__(*args, **kwargs)
×
23
        self.fields["description"].label = _("Description")
×
24

25
    class Meta:
1✔
26
        model = models.Topic
1✔
27
        fields = ["name", "description", "category", "labels"]
1✔
28
        help_texts = {
1✔
29
            "description": _(
30
                "If you add an image, please provide an alternate text. "
31
                "It serves as a textual description of the image content "
32
                "and is read out by screen readers. Describe the image "
33
                "in approx. 80 characters. Example: A busy square with "
34
                "people in summer."
35
            ),
36
        }
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