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

Support plain Django Forms #211

Closed
Archmonger opened this issue Dec 6, 2024 · 4 comments · Fixed by #212
Closed

Support plain Django Forms #211

Archmonger opened this issue Dec 6, 2024 · 4 comments · Fixed by #212
Assignees
Labels
enhancement New feature or request

Comments

@Archmonger
Copy link

Archmonger commented Dec 6, 2024

Is your feature request related to a problem? Please describe.
Currently FormField only supports django.forms.ModelForm, and has no variant that works with a plain django.forms.Form

Describe the solution you'd like
Either create a variant, or have the base ColorField be a Form compatible field.

from colorfield.fields import ColorField
from django import forms

class BasicForm(forms.Form):
    color = ColorField(default='#FF0000')

Describe alternatives you've considered
N/A

Additional context
N/A

@fabiocaccamo
Copy link
Owner

@Archmonger thank you for reporting this, would you like to submit a PR?

@fabiocaccamo fabiocaccamo added the enhancement New feature or request label Jan 11, 2025
@fabiocaccamo fabiocaccamo moved this to Todo in Open Source Jan 11, 2025
@Archmonger
Copy link
Author

I don't believe I'll have the bandwidth to PR this for at least the next 2 years.

@fabiocaccamo
Copy link
Owner

@Archmonger I see now that you are from California, stay safe.

fabiocaccamo added a commit that referenced this issue Jan 27, 2025
fabiocaccamo added a commit that referenced this issue Jan 27, 2025
* Support plain Django forms. #211

* Update README.md
@github-project-automation github-project-automation bot moved this from Todo to Done in Open Source Jan 27, 2025
@fabiocaccamo
Copy link
Owner

@Archmonger available in 0.12.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants