Skip to content

Dates are somehow cached #20

@adi-

Description

@adi-

I need to enable only few dates in calendar and I initiate a form like this:

widgets = {
            'pickup_date': DatePickerInput(
                options=FlatpickrOptions(
                    enable=get_working_days_formated(
                        arrow.get(timezone.now().date()).shift(days=1),
                        arrow.get(timezone.now().date()).shift(days=2)
                    )
            ),
        }

Not sure if this is DatePicker problem or Django's/Python's caching, but when one day passes in real date, DatePicker still uses the same dates as were compiled for the first time. Any clues what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions