Skip to content

Commit

Permalink
update sort menu model
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnb14 authored Oct 14, 2022
1 parent 6229414 commit 8f6c3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_extended/templatetags/sort_menu_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sort_apps(apps):

@register.filter
def sort_models(models):
max_index = len(models)
max_index = len(MENU_MODEL_ORDER)
models.sort(
key=lambda x:
MENU_MODEL_ORDER.index(x['object_name'])
Expand Down

0 comments on commit 8f6c3c4

Please sign in to comment.