Event plugin list: Use a more useful sorting of the list

This commit is contained in:
Raphael Michel
2018-12-12 16:34:15 +01:00
parent b0c4c88d01
commit 483d41c7a6

View File

@@ -30,4 +30,7 @@ def get_all_plugins() -> List[type]:
if app.name in settings.PRETIX_PLUGINS_EXCLUDE:
continue
plugins.append(meta)
return plugins
return sorted(
plugins,
key=lambda m: (0 if m.module.startswith('pretix.') else 1, str(m.name).lower().replace('pretix ', ''))
)