Django ManyToManyFields and Through-Models for many-to-many relationships

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 57

  • @bugbytes3923
    @bugbytes3923  7 місяців тому +3

    Playlist link: ua-cam.com/video/EsBqIZmR2Uc/v-deo.html

  • @alfredoa334
    @alfredoa334 Рік тому +3

    Impressive!!! By far, the best video of the ManyToMany relations in Django!!! Thank you very much.

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thanks a lot, I’m delighted to hear that! Thanks for watching!

    • @alfredoa334
      @alfredoa334 Рік тому

      Thank you for posting. I am glad I found your channel. Great content!!! You have one more subscriber. I hope you channel keeps growing. Best regards.@@bugbytes3923

  • @seydinaoumarsamabaly1806
    @seydinaoumarsamabaly1806 Рік тому +5

    Just aww, I really can say that I've well understood the M2M concept with this one 🙌🏾. Thank you mate !

  • @mossabDiae
    @mossabDiae 2 місяці тому +1

    Great video, subscribed!

  • @sheryarbaloch67
    @sheryarbaloch67 3 місяці тому +1

    Subscribed right after finishing the video.

    • @bugbytes3923
      @bugbytes3923  3 місяці тому +1

      Thanks a lot, great to hear that!

  • @treborsol
    @treborsol Рік тому +6

    Thank you. This was the best overview of the manytomany relation options in Django I have seen so far. Perhaps in a next version you can elaborate on the 'related_name' option and how to use that?

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thanks a lot! I'll try and elaborate on related name in future, too.

  • @立法院很忙
    @立法院很忙 Рік тому +2

    Saving this for the weekend. Thank you!

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thank you!

    • @立法院很忙
      @立法院很忙 7 місяців тому

      @@bugbytes3923 Can you please do a follow-up video and expand on how the ManyToManyFields and the extra fields in the Through-Models can be implemented in Forms and Views? Thank you and have a great weekend!

  • @auraSinhue
    @auraSinhue Рік тому +1

    Great video! Clearly explained :)

  • @krugergaming-yt8121
    @krugergaming-yt8121 5 місяців тому

    Man thank you, this video clarified my doubt in M2M in django

    • @bugbytes3923
      @bugbytes3923  5 місяців тому

      Great to hear, thanks for sharing!

  • @Pedro_Nora
    @Pedro_Nora Рік тому +1

    Thank you, guy! This is a video that I will watch many times. It has a lot of good information and clear explanations!

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thanks a lot Pedro! Glad it is useful, and thank you for watching!

  • @neon_symeon
    @neon_symeon 3 місяці тому

    👍 great stuff, very helpful, thanks a lot

  • @LoumiGueye
    @LoumiGueye 6 місяців тому +1

    Bruh you saved me so much time in my buiding project. Keep the good work! Awesome

    • @bugbytes3923
      @bugbytes3923  6 місяців тому

      Glad to hear it dude! Good luck with your project and thanks!

  • @mikedodds9926
    @mikedodds9926 Рік тому

    Excellent explanation ! came here to understand M2M queries and achieved that plus so much more ! Off to put into practice now ...

  • @aV5d9nlUBQ9
    @aV5d9nlUBQ9 10 місяців тому

    Thanks, man! A great video that helped me a lot

  • @bjdollcoloredpencil3273
    @bjdollcoloredpencil3273 10 місяців тому

    Thank you so much:). That is a very good tutorial:)

  • @khunjohn1054
    @khunjohn1054 Рік тому +1

    As usual great content. One thing is in the admin panel if you are using inlines, that the model require the related_name..through as the end as in "model = Restaurant.staff.through" if you want to list all staff members under each restaurant in a stacked or tabular inline. This will also display the through table fields. Pretty nifty.

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thank you, and nice suggestion there - I should have added it!

  • @westonmufudza3211
    @westonmufudza3211 5 місяців тому

    This is supper man thanx for creating this series and also other series and videos you have provided that's great content man I have benefited and learnt a lot from you keep up the good work, Thnax once again.

  • @aashayamballi
    @aashayamballi Рік тому +1

    Thank you!

  • @khalilbenmeziane8836
    @khalilbenmeziane8836 Рік тому +1

    thank you bro

  • @TomOhle1
    @TomOhle1 Рік тому

    Great content

  • @Septumsempra8818
    @Septumsempra8818 Рік тому +2

    In your next HTMX x Alpine.js video could you cover passing data between htmx and Alpine components. Eg. How do I change an HTMX request based on x-data state?
    I saw the "htmx.process()" method, but It's not so clear.
    Keep up the great work
    🇿🇦

    • @bugbytes3923
      @bugbytes3923  Рік тому +2

      Great suggestion, I'll add that to the list, thank you!

  • @ashkanhasani-e1t
    @ashkanhasani-e1t 8 місяців тому

    hello, tanks for this course, its so useful for me
    please record a course about deep dive in view
    and please record a course to customizing admin panel template and add some function to admin panel

    • @bugbytes3923
      @bugbytes3923  8 місяців тому

      Thanks, will look into those!

  • @romanryaboshtan9270
    @romanryaboshtan9270 Місяць тому +1

    cool

  • @frameff9073
    @frameff9073 Рік тому +1

    thank

  • @HeisenbergHK
    @HeisenbergHK 8 місяців тому +1

    What is the link to the previous video?

    • @bugbytes3923
      @bugbytes3923  8 місяців тому

      It’s on this playlist here: ua-cam.com/play/PL-2EBeDYMIbQXKsyNweppuFptuogJe2L-.html

  • @killer_hok5757
    @killer_hok5757 5 місяців тому

    hi in this case we have 2 table and a many to many relationship , what if have 3 table and and a many to many relationship , how can i write many to many field and where ?

  • @rakeshmali1727
    @rakeshmali1727 7 місяців тому

    Hey, great video.
    Just one question, at 17:40, can't we just add another `staffs = ManyToManyField(Staff)` in Restaurant model as well?

    • @mossabDiae
      @mossabDiae 2 місяці тому

      No need to do that, you can access it from the other side using staff_set 17:55
      _set is a Django convention, it also works with One to Many relations.

  • @asgeralia8802
    @asgeralia8802 Рік тому

    Sir i want autocomplete with out foreignkey in list need to display db columns like id, description, shortname, alias and etc i want to get any one according requirement like some time i wl get description or shortname or id

  • @asgeralia8802
    @asgeralia8802 Рік тому

    Superb and awesome but i want your email bcz i hv lot of doubts in autocomplete

  • @Aerish369
    @Aerish369 7 місяців тому +1

    Thank you so much.

    • @bugbytes3923
      @bugbytes3923  7 місяців тому +1

      You’re welcome! Thanks for watching!