Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 130d6da

Browse files
removed useless function from userprofile
1 parent 9284a10 commit 130d6da

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

userprofile/forms.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ def get_color_choice(color, name):
1919
)
2020

2121

22-
@keep_lazy_text
23-
def get_colormode_choice(colormode, name):
24-
return (
25-
colormode,
26-
format_html(
27-
"<span>{}</span>",
28-
name,
29-
),
30-
)
31-
32-
3322
class ProfileForm(forms.ModelForm):
3423
color = forms.ChoiceField(
3524
choices=[
@@ -53,14 +42,7 @@ class ProfileForm(forms.ModelForm):
5342
)
5443

5544
colormode = forms.ChoiceField(
56-
choices=[
57-
get_colormode_choice(color, name)
58-
for color, name in (
59-
(Profile.CM_DEFAULT, _("Systemstandard (Standard)")),
60-
(Profile.CM_LIGHT, _("Hell")),
61-
(Profile.CM_DARK, _("Dunkel")),
62-
)
63-
],
45+
choices=Profile.CM_CHOICES,
6446
label=_("Farbschema"),
6547
required=False,
6648
widget=forms.RadioSelect(attrs={"onchange": "this.form.submit();"}),

0 commit comments

Comments
 (0)