I have 2 models, let's say B has a foreign key to A, and I want to give user an option to not just select, but also create that foreign key, should I use 2 ModelForms, or an inline formset? I don't want to use the formset for multiple forms of the same type, so I am conflicted if I should use it over the 2 forms.
That's a nice tutorial. I wonder how do we set that exactly how many children should be there for a parent? Means let's say I have quiz question and I want the user to link a question to exactly four choices, how do we do that with this?
Hey, I think you could mention widgets parameter in case you might want to change type of the HTML field (textarea instead of text input or even select) and also passing form to model (not form of parent model) is quite handy. Anyway, great video, thanks.
Thanks for watching the video. The big advantage to TH-cam videos is you can slow them down and rewatch. You don't have to understand it all the first time you watch.
Good work! I think the Delete check can also be customize if we add new buttons on Admin area for this class model... Right?. Can you provide a tutorial about django-axes or django-defender is build by github.com/jazzband/django-defender? Thank's for share.
Join my free course on the basics of using the database in Django: prettyprinted.com/djangodata
Noice, wish you could continue upload like before.
Superb!
Is there a way to dynamically number each form in the form set? (i.e. give each box a line number and save it to the model)
How i cand add buttons for delete , add and edit for each form on inline formset?
I have 2 models, let's say B has a foreign key to A, and I want to give user an option to not just select, but also create that foreign key, should I use 2 ModelForms, or an inline formset? I don't want to use the formset for multiple forms of the same type, so I am conflicted if I should use it over the 2 forms.
That's a nice tutorial. I wonder how do we set that exactly how many children should be there for a parent? Means let's say I have quiz question and I want the user to link a question to exactly four choices, how do we do that with this?
Is it possible to do a dependent drop-down list with inline formsets in django?
Hey, I think you could mention widgets parameter in case you might want to change type of the HTML field (textarea instead of text input or even select) and also passing form to model (not form of parent model) is quite handy. Anyway, great video, thanks.
Yeah, I should cover that. Thanks for letting me know.
HOW CAN I GET AN INFORMATION FROM A HTML AND TYPE CHECKBOX THX
It's a good article video, Only issue i have faced is its bit fast in typing. If somone trying to practice with your video its very difficult.
Thanks for watching the video. The big advantage to TH-cam videos is you can slow them down and rewatch. You don't have to understand it all the first time you watch.
Good work! I think the Delete check can also be customize if we add new buttons on Admin area for this class model... Right?. Can you provide a tutorial about django-axes or django-defender is build by github.com/jazzband/django-defender? Thank's for share.
Hey can you please tell me how to edit saved data in inline formset ? I don't wanna use delete option.
You can use the existing data to populate the form. It will be updated whenever you save the form again.
Can_order?
I know you are updating data, but how create with inline?
Try this tutorial: medium.com/@adandan01/django-inline-formsets-example-mybook-420cc4b6225d