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

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ส.ค. 2024

ความคิดเห็น • 19

  • @prettyprinted
    @prettyprinted  4 ปีที่แล้ว

    Join my free course on the basics of using the database in Django: prettyprinted.com/djangodata

  • @onyilimba
    @onyilimba 2 ปีที่แล้ว

    Noice, wish you could continue upload like before.

  • @chrisogonas
    @chrisogonas 2 ปีที่แล้ว

    Superb!

  • @Johnnyboycurtis
    @Johnnyboycurtis 5 ปีที่แล้ว +1

    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)

  • @ahmedmahmoudshafea2814
    @ahmedmahmoudshafea2814 ปีที่แล้ว

    How i cand add buttons for delete , add and edit for each form on inline formset?

  • @somMelon
    @somMelon 3 ปีที่แล้ว +1

    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.

  • @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?

  • @johnventrella5753
    @johnventrella5753 4 ปีที่แล้ว

    Is it possible to do a dependent drop-down list with inline formsets in django?

  • @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.

  • @elyesachour2208
    @elyesachour2208 4 ปีที่แล้ว

    HOW CAN I GET AN INFORMATION FROM A HTML AND TYPE CHECKBOX THX

  • @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 TH-cam videos is you can slow them down and rewatch. You don't have to understand it all the first time you watch.

  • @catafest-work
    @catafest-work 4 ปีที่แล้ว

    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.

  • @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.

  • @alexeyfilippov42
    @alexeyfilippov42 3 ปีที่แล้ว

    Can_order?

  • @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