Useful Inline Form Set Options in Django (Part 2 of 2)

  Рет қаралды 16,108

Pretty Printed

Pretty Printed

Күн бұрын

Пікірлер: 19
@prettyprinted
@prettyprinted 4 жыл бұрын
Join my free course on the basics of using the database in Django: prettyprinted.com/djangodata
@Johnnyboycurtis
@Johnnyboycurtis 5 жыл бұрын
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)
@somMelon
@somMelon 4 жыл бұрын
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
@ahmedmahmoudshafea2814 Жыл бұрын
How i cand add buttons for delete , add and edit for each form on inline formset?
@onyilimba
@onyilimba 2 жыл бұрын
Noice, wish you could continue upload like before.
@chrisogonas
@chrisogonas 2 жыл бұрын
Superb!
@johnventrella5753
@johnventrella5753 4 жыл бұрын
Is it possible to do a dependent drop-down list with inline formsets in django?
@elyesachour2208
@elyesachour2208 4 жыл бұрын
HOW CAN I GET AN INFORMATION FROM A HTML AND TYPE CHECKBOX THX
@DavidRajM
@DavidRajM 4 жыл бұрын
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-qz7tc
@RahulSingh-qz7tc 5 жыл бұрын
Hey can you please tell me how to edit saved data in inline formset ? I don't wanna use delete option.
@prettyprinted
@prettyprinted 5 жыл бұрын
You can use the existing data to populate the form. It will be updated whenever you save the form again.
@catafest-work
@catafest-work 5 жыл бұрын
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.
@marekvargovcik2651
@marekvargovcik2651 5 жыл бұрын
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.
@prettyprinted
@prettyprinted 5 жыл бұрын
Yeah, I should cover that. Thanks for letting me know.
@gauravsrivastava8740
@gauravsrivastava8740 5 жыл бұрын
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.
@prettyprinted
@prettyprinted 5 жыл бұрын
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.
@FelipeGomesRocket
@FelipeGomesRocket 5 жыл бұрын
I know you are updating data, but how create with inline?
@prettyprinted
@prettyprinted 5 жыл бұрын
Try this tutorial: medium.com/@adandan01/django-inline-formsets-example-mybook-420cc4b6225d
@alexeyfilippov42
@alexeyfilippov42 3 жыл бұрын
Can_order?
Creating a Diary App in Django
58:54
Pretty Printed
Рет қаралды 27 М.
Using the Inline Form Set Factory in Django (Part 1 of 2)
19:31
Pretty Printed
Рет қаралды 59 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
A Quick Intro to Model Formsets in Django
10:37
Pretty Printed
Рет қаралды 38 М.
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 95 М.
How to Use the Related Name Attribute in Django
10:56
Pretty Printed
Рет қаралды 23 М.
Adding Extra Fields On Many-To-Many Relationships in Django
17:45
Pretty Printed
Рет қаралды 43 М.
Django Tutorial - Custom Forms
14:33
Tech With Tim
Рет қаралды 59 М.
Django Filtering System with django-filter - Filter Queryset (2018)
6:42
How Model Queries Work in Django
27:47
Pretty Printed
Рет қаралды 95 М.
How to Use the ifchanged Template Tag in Django
9:58
Pretty Printed
Рет қаралды 4,1 М.
Creating Forms From Models in Django With ModelForm
11:40
Pretty Printed
Рет қаралды 47 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН