Jacob Rief
Jacob Rief
Yes, the built-in color field is quite useful but lacks of a few features other, more specialized libraries can offer. In that sense it's similar to an `` field which...
You must override the class `FormRenderer`. Simply inherit from `formset.renderers.tailwind.FormRenderer` and override the method to add the CSS class, aka. `_amend_text_input()`.
Version 1.5.5 now offer a fully working solution for this.
I'm unsure if I understand your question, but forms can be created from models as described here: https://django-formset.fly.dev/model-collections/#one-to-one-relations this also applies to one-to-many-relations The important method to remember is `model_to_dict`...
I believe the best idea is that you fork this project and add one of the existing models/collections to your implementation. Then I'll have a look at how that problem...
Did you try the methods `construct_instance` and `model_to_dict`. Here is a working demo: https://django-formset.fly.dev/bootstrap/company the code to run that demo is provided in `testapp`.
did you use the `formset.views.EditCollectionView`?
You may send me the link to your (public) repository and I will try to reproduce it.
Thanks @SamuelJennings for pointing this out. I'll add this to the documentation. If you want, you can create a pull request and write it yourself.
@SamuelJennings have you been able to document this setting?