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

iplweb / bpp / 18634744198

19 Oct 2025 07:00PM UTC coverage: 31.618% (-29.9%) from 61.514%
18634744198

push

github

mpasternak
Merge branch 'release/v202510.1270'

657 of 9430 branches covered (6.97%)

Branch coverage included in aggregate %.

229 of 523 new or added lines in 42 files covered. (43.79%)

11303 existing lines in 316 files now uncovered.

14765 of 39346 relevant lines covered (37.53%)

0.38 hits per line

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

57.89
src/import_dyscyplin/forms.py
1
from crispy_forms.helper import FormHelper
1✔
2
from crispy_forms_foundation.layout import Fieldset, Hidden, Layout, Submit
1✔
3
from django.forms import ModelForm, inlineformset_factory
1✔
4

5
from import_dyscyplin.models import Import_Dyscyplin, Kolumna
1✔
6

7

8
class Import_Dyscyplin_KolumnaForm(ModelForm):
1✔
9
    class Meta:
1✔
10
        model = Import_Dyscyplin
1✔
11
        fields = [
1✔
12
            "web_page_uid",
13
        ]
14

15
    def __init__(self, *args, **kw):
1✔
16
        super().__init__(*args, **kw)
×
17
        helper = FormHelper(self)
×
18
        helper.form_class = "custom"
×
19
        helper.layout = Layout(
×
20
            Hidden("web_page_uid", ""),
21
        )
22
        self.helper = helper
×
23

24

25
class KolumnaForm(ModelForm):
1✔
26
    class Meta:
1✔
27
        model = Kolumna
1✔
28
        fields = ["nazwa_w_pliku", "rodzaj_pola"]
1✔
29

30

31
class KolumnaFormSetHelper(FormHelper):
1✔
32
    template = "bootstrap5/table_inline_formset.html"
1✔
33

34
    def __init__(self, *args, **kwargs):
1✔
35
        super().__init__(*args, **kwargs)
×
36
        self.form_method = "post"
×
37
        self.add_input(
×
38
            Submit("submit", "Zatwierdź i przejdź dalej", css_class="button success")
39
        )
40
        self.render_required_fields = True
×
41

42

43
KolumnaFormSet = inlineformset_factory(
1✔
44
    Import_Dyscyplin, Kolumna, form=KolumnaForm, can_delete=False, extra=0
45
)
46

47

48
class Import_DyscyplinForm(ModelForm):
1✔
49
    class Meta:
1✔
50
        fields = ("plik", "rok")
1✔
51
        model = Import_Dyscyplin
1✔
52

53
    def __init__(self, *args, **kw):
1✔
UNCOV
54
        super().__init__(*args, **kw)
×
UNCOV
55
        helper = FormHelper(self)
×
UNCOV
56
        helper.form_class = "custom"
×
UNCOV
57
        helper.form_id = "import_dyscyplin_form"
×
UNCOV
58
        helper.attrs = {"name": "import_dyscyplin_form"}
×
UNCOV
59
        helper.layout = Layout(
×
60
            Fieldset(
61
                "Zaimportuj plik",
62
                "plik",
63
                "rok",
64
                Hidden("web_page_uid", ""),
65
                Submit("submit", "Wyślij", css_id="id_submit"),
66
            )
67
        )
UNCOV
68
        self.helper = helper
×
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