Replies: 10 comments 9 replies
-
I never tested this, but I will try so soon. What exactly do you mean with "it doesn't work"? The widget itself, or doesn't the database accept the values? |
Beta Was this translation helpful? Give feedback.
-
It doesn't show selected values when I open form to edit. And I've got "Select a valid choice. That choice is not one of the available choices." in form when I submit ModelDialogForm |
Beta Was this translation helpful? Give feedback.
-
Since naming is hard, please make my life easier by describing your use-case so that I can recycle your names in another example below |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm wrong, but I have a feeling that if the form with SelectizeMultiple in formcollection then problems arise, in particular, the form for editing does not open. The same form opens and works fine if it is not included in formcollection. |
Beta Was this translation helpful? Give feedback.
-
I'm so sorry.... It seems to me I'm an idiot. Thank you very much for your project and... again... I'm sorry |
Beta Was this translation helpful? Give feedback.
-
Anyway, I'm always interested in small examples to add as demo to the testapp project. I'm currently working on other stuff, so feel free to add this yourself. |
Beta Was this translation helpful? Give feedback.
-
Thank you... I have some new questions. I have achieved the functioning of my forms with DialogModalForm only with your great formset, but still I got a few problem. When using ManyToMany fields, it is not clear how to fill them in when It that case I can set only one value not many. |
Beta Was this translation helpful? Give feedback.
-
Waiting for your working exmple with manytomany in DialogModelForm. In my case everything work but when I open DialogModelForm with manytomany selectize widget for editing it doesn't refresh values after save partial. |
Beta Was this translation helpful? Give feedback.
-
This has been fixed in the latest commit on branch I have added an example to the demo apps, please check http://localhost:8000/bootstrap/issue-many Thanks for reporting and please share your feedback! |
Beta Was this translation helpful? Give feedback.
-
Don't do that.
this build the parser you couldn't import. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use SelectizeMultiple in DialogModelForm?
In my Formset I have
(class DishSet(FormCollection):
dish_form = DishForm()
dish_images = DishImageCollection())
And All these forms below are DialogModelForms
add_cat_form = AddDishCatalogForm(is_modal=True)
edit_cat_form = EditDishCatalogForm(is_modal=True)
edit_class_form = EditCulinaryClassForm(is_modal=True)
add_class_form = AddCulinaryClassForm(is_modal=True)
edit_type_form = EditTypeForm(is_modal=True)
add_type_form = AddTypeForm(is_modal=True)
add_dish = AddDishLibraryForm(is_modal=True)
edit_dish = ChangeDishLibraryForm(is_modal=True)
All DialogModelForms are for add/edit elements from fields of DishForm.
Everyrhing worked fine with ForeignKey relations. But I decided to use ManyToMany relation for one field. And It seems to me it doesn't work. Could you just let me know is it possible to use SelectizeMultiple in DialogModelForm?
Beta Was this translation helpful? Give feedback.
All reactions