make node_sort_order an .env variable

This commit is contained in:
smilerz
2021-09-28 11:39:15 -05:00
parent cb330bc6e8
commit 658e04addb
7 changed files with 41 additions and 16 deletions

View File

@ -89,7 +89,7 @@ class SyncLogAdmin(admin.ModelAdmin):
admin.site.register(SyncLog, SyncLogAdmin)
@admin.action(description='Sort tree by name')
@admin.action(description='Fix problems and sort tree by name')
def sort_tree(modeladmin, request, queryset):
modeladmin.model.node_order_by = ['name']
with scopes_disabled():