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

Add date-local to supported widgets #740

Open
Segelzwerg opened this issue Jan 11, 2025 · 0 comments
Open

Add date-local to supported widgets #740

Segelzwerg opened this issue Jan 11, 2025 · 0 comments

Comments

@Segelzwerg
Copy link

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.

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