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

Make ImageFormField render with accept="image/*"' HTML attribute #731

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tubaman
Copy link

@tubaman tubaman commented May 7, 2023

Since Django 2.1, the default forms.ImageField has rendered with accept="image/*". Copy the code here to do the same.

@tubaman
Copy link
Author

tubaman commented May 7, 2023

Django's commit: django/django@9fd9f8b

@claudep
Copy link
Contributor

claudep commented May 8, 2023

Thanks, however this would need a test, please!

Since Django 2.1, the default forms.ImageField has rendered with
accept="image/*".  Copy the code here to do the same.
@tubaman
Copy link
Author

tubaman commented Oct 1, 2023

Thanks, however this would need a test, please!

Added

@claudep
Copy link
Contributor

claudep commented Oct 1, 2023

Nice, thanks! Could you please make the pre-commit.ci checks happy?

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

Successfully merging this pull request may close these issues.

2 participants