Skip to content

feat: list_fullwidth for custom pages #1430

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khadeom
Copy link

@khadeom khadeom commented Jul 2, 2025

Added list_fullwith feature for custom pages similar to test_fullwith in ModelAdmin

@khadeom
Copy link
Author

khadeom commented Jul 2, 2025

@lukasvinclav Could you please share your thoughts on this implementation?
I’m wondering if we can avoid the double check in base.html:

{% if not cl.model_admin.list_fullwidth and not list_fullwidth %}

Is there a cleaner way to handle this condition—perhaps a unified flag or context variable that works for both the changelist and custom pages?

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.

1 participant