Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(apis_entities): reorder entity menu items #1658

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

koeaw
Copy link
Contributor

@koeaw koeaw commented Mar 6, 2025

Changes the current sort order of entity model
classes in the entities menu in base.html from
(presumably) by ContentType id to alphabetical by ContentType name, which is based on the
model's verbose_name.

Resolves: #1657

Changes the current sort order of entity model
classes in the entities menu in `base.html` from
(presumably) by `ContentType` `id` to alphabetical
by `ContentType` `name`, which is based on the
model's `verbose_name`.

Resolves: #1657
@koeaw
Copy link
Contributor Author

koeaw commented Mar 6, 2025

Since we display verbose_name_plurals in the UI, sorting by verbose_name (via ContentType name) might not always match expectations 100%, but should be an OK approximation.

@koeaw
Copy link
Contributor Author

koeaw commented Mar 6, 2025

Before After

@b1rger b1rger merged commit cb242cf into main Mar 11, 2025
15 checks passed
@b1rger b1rger deleted the kk/fix/entity_menu_sort_order branch March 11, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entity menu items sort order
2 participants