Join my free course on the basics of using the database in Django: prettyprinted.com/djangodata
@Johnnyboycurtis5 жыл бұрын
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)
@somMelon4 жыл бұрын
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.
@ahmedmahmoudshafea2814 Жыл бұрын
How i cand add buttons for delete , add and edit for each form on inline formset?
@onyilimba2 жыл бұрын
Noice, wish you could continue upload like before.
@chrisogonas2 жыл бұрын
Superb!
@johnventrella57534 жыл бұрын
Is it possible to do a dependent drop-down list with inline formsets in django?
@elyesachour22084 жыл бұрын
HOW CAN I GET AN INFORMATION FROM A HTML AND TYPE CHECKBOX THX
@DavidRajM4 жыл бұрын
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?
@RahulSingh-qz7tc5 жыл бұрын
Hey can you please tell me how to edit saved data in inline formset ? I don't wanna use delete option.
@prettyprinted5 жыл бұрын
You can use the existing data to populate the form. It will be updated whenever you save the form again.
@catafest-work5 жыл бұрын
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.
@marekvargovcik26515 жыл бұрын
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.
@prettyprinted5 жыл бұрын
Yeah, I should cover that. Thanks for letting me know.
@gauravsrivastava87405 жыл бұрын
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.
@prettyprinted5 жыл бұрын
Thanks for watching the video. The big advantage to KZbin videos is you can slow them down and rewatch. You don't have to understand it all the first time you watch.
@FelipeGomesRocket5 жыл бұрын
I know you are updating data, but how create with inline?
@prettyprinted5 жыл бұрын
Try this tutorial: medium.com/@adandan01/django-inline-formsets-example-mybook-420cc4b6225d