mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Remove empty optgroups from language selector widget
This commit is contained in:
@@ -339,6 +339,7 @@ class MultipleLanguagesWidget(forms.CheckboxSelectMultiple):
|
||||
filter_and_sort(self.choices, settings.LANGUAGES_INCUBATING)
|
||||
)
|
||||
)
|
||||
self.choices = [c for c in self.choices if len(c[1])]
|
||||
|
||||
def options(self, name, value, attrs=None):
|
||||
self.sort()
|
||||
|
||||
Reference in New Issue
Block a user