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
Django Forms integration not working well #469
Comments
Hello! So, the root cause when this happens is because However, I would be curious what issues you are running into using There are some other issues in this repo about better integration with forms. I'd love to hear your feedback/thoughts about how to improve that experience. 👍 |
Hi @adamghill thanks for the quick response. I tried to manually populate, but no good:
Maybe I am doing something wrong? |
@adamghill some piece of information. If I remove the model from the unicornview, the value is kept and it works.... I think I will go this way |
Interesting! Ok, I'll do some more testing on my own and let you know what I discover/if I find bugs that I can fix. I assume I could use something like this for class MyForm(forms.Form):
my_cool_field = forms.CharField() |
@adamghill yes, if you want to do a zoom or something, I am more than happy to help. Since I am new on django-unicorn, I cant help on fixing things, but I will get there :) |
I just ran into the same pickling error. I have a GET form that is validated in This stackoverflow answer removed the warning. However, I'm not sure what information gets lost in the process. |
So I have a regular django form that I am porting to django-unicorn, so I can dynamically update the queryset.
Depending on the approach I have some strange errors.
Component
Unicorn View
Django template
{% unicorn 'myview' form=form %}
Then on any interaction I get:
I left just the necessary to reproduce the issue....
The form_class documentation is not so clear on how to use that, and when trying, it gives a whole new set of issues.
(awesome project! I have been looking for this for years!)
The text was updated successfully, but these errors were encountered: