Skip to content

Add date-local to supported widgets #740

@Segelzwerg

Description

@Segelzwerg

This maybe similar to #678.

I like to use the widget date-local in my templates. However, this seems to break the date picker as well as the floating label.

image

class Form(ModelForm):

    class Meta:
        ....
        widgets = {
            'date': DateInput(attrs={'type': 'date-local'}),
            'due_date': DateInput(attrs={'type': 'date-local'}),
            'delivery_date': DateInput(attrs={'type': 'date'}),
        }

Let me know if more information is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions