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

Collapsible filter [ModelAdmin] #13

Open
sourenaraya opened this issue Sep 8, 2017 · 1 comment
Open

Collapsible filter [ModelAdmin] #13

sourenaraya opened this issue Sep 8, 2017 · 1 comment
Labels
type:Enhancement New feature or request

Comments

@sourenaraya
Copy link

sourenaraya commented Sep 8, 2017

For example, i have Product model, and Vendor model. And of course, i want to filter Products by Vendor, on ProductAdmin page,
It's ok when you have like, 10 vendors, but when there is 100 of them, its a problem. Especially on mobile devices.
Would be nice, if filter by section was collapsed by default, just like in django admin.

@ababic
Copy link

ababic commented Sep 8, 2017

Hi @sourenaraya.

If you wanted a workaround for the meantime, last time I checked, Wagtail's modeladmin app supported custom Django filters in list_filter, just like Django's equivalent does ( https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter), so you could try giving that a go?

This behaviour isn't documented though, so best to use with caution.

@gasman gasman added the type:Enhancement New feature or request label Sep 12, 2017
@laymonage laymonage transferred this issue from wagtail/wagtail Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants