Showing 1 of 1 files from the diff.

@@ -98,14 +98,15 @@
Loading
98 98
            self.fields.pop("track", None)
99 99
        elif "track" in self.fields:
100 100
            self.fields["track"].queryset = event.tracks.all()
101 -
        if len(event.locales) == 1:
102 -
            self.fields["content_locale"].initial = event.locales[0]
103 -
            self.fields["content_locale"].widget = forms.HiddenInput()
104 -
        else:
105 -
            locale_names = dict(settings.LANGUAGES)
106 -
            self.fields["content_locale"].choices = [
107 -
                (a, locale_names[a]) for a in event.locales
108 -
            ]
101 +
        if "content_locale" in self.fields:
102 +
            if len(event.locales) == 1:
103 +
                self.fields["content_locale"].initial = event.locales[0]
104 +
                self.fields["content_locale"].widget = forms.HiddenInput()
105 +
            else:
106 +
                locale_names = dict(settings.LANGUAGES)
107 +
                self.fields["content_locale"].choices = [
108 +
                    (a, locale_names[a]) for a in event.locales
109 +
                ]
109 110
110 111
    def save(self, *args, **kwargs):
111 112
        instance = super().save(*args, **kwargs)
Files Coverage
src 96.17%
Project Totals (245 files) 96.17%
1
codecov:
2
  notify:
3
    require_ci_to_pass: yes
4

5
coverage:
6
  precision: 2
7
  round: down
8
  range: "70...100"
9

10
  status:
11
    threshold: 2%
12
    project: yes
13
    patch: yes
14
    changes: no
15

16
parsers:
17
  gcov:
18
    branch_detection:
19
      conditional: yes
20
      loop: yes
21
      method: no
22
      macro: no
23

24
comment:
25
  require_changes: yes
26
  layout: "header, diff, files"
27
  behavior: default
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading