Generic Foreign Keys in Django / GenericForeignKey / GenericRelation
ฝัง
- เผยแพร่เมื่อ 12 ก.ย. 2024
- This video will look at generic foreign keys in Django, which allow you to hook up a model to any other model in your application.
We'll see how to define and query GenericForeignKey instances, and how to define GenericRelation fields on the reverse side of the relationship.
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
ko-fi.com/bugb...
▶️ Full Playlist:
• Django ORM Deep Dive
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: bugbytes.io/po...
👾 Github: github.com/bug...
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Generic Inlines in Admin: docs.djangopro...
Permissions and Authorisation: docs.djangopro...
#python #django #webdevelopment #database #sql
ORM Playlist link: th-cam.com/video/EsBqIZmR2Uc/w-d-xo.html
Nice! Looking forward to the permission related videos.
Great content, please do a video on internals of permission as well. That would be great.
Thank you! This really cleared up my knowledge on this subject.
Thanks a lot, glad to hear that!
Great video as always! For one project I had all those null fields because i want to use comments for movies, tv series and lists etc. This is much much cleaner.
Thanks a lot!
Great video. Thanks! Already passed half the way from 10K to 20k subscribers... Congratulations!
Thanks a lot, well noticed! Thanks for the support!
Great continuation. Thanks very much.
Thanks!
do one on permissions and authorization too
thank you and more django video please
Great Content can you make video for permission system in django thanks :)
If you wish to improve your Django understanding, subscribe to this channel. Thank you very much.
Thanks a lot !
Thanks
Thanks for commenting!
But you didn"t say anything about on_delete doesn't"t work so we need to use signals to delete the related models
well explained. though it is a little bit advanced for me :-)
Thanks! This concept of generic FKs/ContentTypes took a while to grasp for me, so no worries if it seems advanced.
Thank you sir
Thanks for watching!
Thank you
Thanks a lot!
How can i create a hyperlinked related field for generic foreign key?
GenericForeignKey or django-polymorphic or InheritanceManager? what do you suggest?
love it.
Thanks a lot!
❤ Thank
Thanks!
cool
Thanks!
،😮😮😮😮😮😮😮😮 Thank u
Thanks a lot!
do one on permissions and authorization too