forked from CGM_Public/pretix_original
Event plugin list: Use a more useful sorting of the list
This commit is contained in:
@@ -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 ', ''))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user