Skip to content

Commit

Permalink
allow user to unselect a preferred posting language
Browse files Browse the repository at this point in the history
  • Loading branch information
chdorner committed Jun 6, 2023
1 parent b6f9df6 commit fbb38c6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions users/views/settings/posting.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ class PostingPage(SettingsPage):
"title": "Default posting language",
"help_text": "",
"choices": sorted(
[
(lang.alpha_2, lang.name)
for lang in pycountry.languages
if hasattr(lang, "alpha_2")
],
(
[
("", ""),
]
+ [
(lang.alpha_2, lang.name)
for lang in pycountry.languages
if hasattr(lang, "alpha_2")
]
),
key=lambda lang: lang[1],
),
},
Expand Down

0 comments on commit fbb38c6

Please sign in to comment.