• 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

93.75
/apps/budgeting/models.py
1
from django.contrib.contenttypes.fields import GenericRelation
1✔
2
from django.db import models
1✔
3
from django.urls import reverse
1✔
4
from django.utils.translation import gettext_lazy as _
1✔
5

6
from adhocracy4.comments import models as comment_models
1✔
7
from adhocracy4.ratings import models as rating_models
1✔
8
from apps.mapideas import models as mapidea_models
1✔
9

10

11
class Proposal(mapidea_models.AbstractMapIdea):
1✔
12
    ratings = GenericRelation(
1✔
13
        rating_models.Rating,
14
        related_query_name="budget_proposal",
15
        object_id_field="object_pk",
16
    )
17
    comments = GenericRelation(
1✔
18
        comment_models.Comment,
19
        related_query_name="budget_proposal",
20
        object_id_field="object_pk",
21
    )
22
    budget = models.PositiveIntegerField(default=0, help_text=_("Required Budget"))
1✔
23

24
    is_archived = models.BooleanField(
1✔
25
        default=False,
26
        verbose_name=_("Proposal is archived"),
27
        help_text=_(
28
            "Exclude this proposal from all listings by default. "
29
            "You can still access this proposal by using filters."
30
        ),
31
    )
32

33
    def get_absolute_url(self):
1✔
34
        return reverse(
×
35
            "a4_candy_budgeting:proposal-detail",
36
            kwargs=dict(
37
                organisation_slug=self.project.organisation.slug,
38
                pk="{:05d}".format(self.pk),
39
                year=self.created.year,
40
            ),
41
        )
42

43
    class Meta:
1✔
44
        ordering = ["-created"]
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

© 2025 Coveralls, Inc