Skip to content

RangeDateFilters not working when "list_editables" include date fields #2017

@yamac-kurtulus

Description

@yamac-kurtulus

Did you used AI to write this issue?

No

What version of Unfold are you using?

0.87.0

What version of Django are you using?

4.2.3

What browser are you using?

Firefox 149.0.2

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

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

No

Repository with reproduced bug

Click here for a minimal repository where it is possible to reproduce an error.

Describe your issue
RangeDateFilters in Django admin can fail on first use when a changelist page loads both Unfold range-date filters and Django admin date widgets. Such case can occur for example when a DateField is declared in "list_editable".

Behavior: The calendar opens but clicking a date closes the popup but does not write the selected value into the filter input. After navigating the calendar to another month at least once, or even choosing "Yesterday", "Today" or "Tomorrow" date selection starts working. At that point, calendar starts working normally. The calendar inputs in list_editable display have no problem, only filters affected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions