• 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

82.61
/apps/mapideas/forms.py
1
from django import forms
1✔
2
from django.utils.translation import gettext_lazy as _
1✔
3

4
from adhocracy4.categories.forms import CategorizableFieldMixin
1✔
5
from adhocracy4.labels.mixins import LabelsAddableFieldMixin
1✔
6
from adhocracy4.maps import widgets as maps_widgets
1✔
7
from apps.contrib.mixins import ImageRightOfUseMixin
1✔
8
from apps.organisations.mixins import OrganisationTermsOfUseMixin
1✔
9

10
from . import models
1✔
11

12

13
class MapIdeaForm(
1✔
14
    CategorizableFieldMixin,
15
    LabelsAddableFieldMixin,
16
    ImageRightOfUseMixin,
17
    OrganisationTermsOfUseMixin,
18
):
19
    def __init__(self, *args, **kwargs):
1✔
UNCOV
20
        self.settings = kwargs.pop("settings_instance")
×
UNCOV
21
        super().__init__(*args, **kwargs)
×
UNCOV
22
        self.fields["point"].widget = maps_widgets.MapChoosePointWidget(
×
23
            polygon=self.settings.polygon
24
        )
UNCOV
25
        self.fields["point"].error_messages["required"] = _(
×
26
            "Please locate your proposal on the map."
27
        )
28

29
    class Media:
1✔
30
        js = ("select_dropdown_init.js",)
1✔
31

32
    class Meta:
1✔
33
        model = models.MapIdea
1✔
34
        fields = [
1✔
35
            "name",
36
            "description",
37
            "image",
38
            "category",
39
            "labels",
40
            "point",
41
            "point_label",
42
        ]
43

44

45
class MapIdeaModerateForm(forms.ModelForm):
1✔
46
    class Meta:
1✔
47
        model = models.MapIdea
1✔
48
        fields = ["moderator_status"]
1✔
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