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

New option list_filter_sheet does not seem to work #866

Open
subham1099 opened this issue Nov 19, 2024 · 0 comments
Open

New option list_filter_sheet does not seem to work #866

subham1099 opened this issue Nov 19, 2024 · 0 comments

Comments

@subham1099
Copy link

subham1099 commented Nov 19, 2024

What version of Unfold are you using?

v0.41.0

What version of Django are you using?

5.1.2

What browser are you using?

Firefox latest

Did you checked changelog/commit history, if the bug is not already fixed?

Yes

Did you searched other issues, if the bug is not already fixed?

Yes

Did you checked documentation?

Yes. The new option list_filter_sheet is not documented.

Are you able to replicate the bug in the demo site?

The demo site shows the new filter UI, but when I cloned the demo site repo, old filter UI is shown. Does the repo contain the latest deployed code of the demo site?

Repository with reproduced bug

Simply clone the demo site repo and follow the instructions. visit the "drivers" change list page and see the filter UI and compare with the demo site.

Screenshot

Describe your issue

Hi there, I am trying to make the new filter UI work, but I am unable to. The demo site shows the new filter UI, but on my local (formula repo clone) the default filter UI is shown (see the drivers admin changelist for example). The default setting of list_filter_sheet=True doesn't seem to work either.

Screenshot

Am I missing something?

sample code:

from unfold.admin import ModelAdmin
from unfold.contrib.filters.admin import RelatedDropdownFilter

class LocationAdmin(ModelAdmin):
    list_display = (
        "country",
        "name",
        "subdivision",
    )
    list_filter = (
        ("country", RelatedDropdownFilter),
    )
    ordering = ("-created_at",)
    list_fullwidth = True
    list_filter_submit = True
    list_filter_sheet = True
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

No branches or pull requests

1 participant