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

Sync modeladmin field ordering logic with django's #6931

Closed
wants to merge 1 commit into from

Conversation

thatguystone
Copy link
Contributor

It looks like the original code was copied from django.contrib.admin.views, and it's gotten a bit out-of-sync; this brings it back in-sync with django/contrib/admin/views/main.py@2411b8b.

Fixes wagtail-nest/wagtail-modeladmin#29

@squash-labs
Copy link

squash-labs bot commented Mar 18, 2021

Manage this branch in Squash

Test this branch here: https://thatguystonemodeladmin-orderin-9isbe.squash.io

@ababic
Copy link
Contributor

ababic commented Mar 19, 2021

Hi @thatguystone. This is looking great, thank you! Would you be okay to add a couple of tests to cover the new cases? I would be surprised if there wasn't something in Django that you could use for inspiration.

@laymonage
Copy link
Member

Hello, I'm closing this as it's quite dated and we no longer accepting PRs for new ModelAdmin features in Wagtail as per wagtail/rfcs#85. If you'd like, you could create a new PR to the wagtail-modeladmin repository. If the bug fix is critical, we might consider backporting it to the Wagtail repo during the deprecation period. Thank you!

@laymonage laymonage closed this Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modeladmin assumes ordering values are strings, and so crashes on F expressions
3 participants