Django Model Inheritance - Abstract Models and Multi-Table Inheritance

  Рет қаралды 4,673

BugBytes

BugBytes

Күн бұрын

Пікірлер: 20
@tarikr5853
@tarikr5853 11 күн бұрын
As a Merise user, this gives an answer to how is implemented inheritance of entities that is modeled at the conceptual level of a database. thank you to you and the django project.
@richardalcantara3495
@richardalcantara3495 2 жыл бұрын
This is what I need for my project, I've been figuring out decent ways to avoid duplication of model content to each and every content I make in my project. Thanks you!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Nice one, thank you for the comment!
@stevepole1970
@stevepole1970 2 жыл бұрын
Beautifully explained. Well done.
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you very much!
@alaminbijoy1027
@alaminbijoy1027 2 жыл бұрын
thanks man. Learned something new.
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Nice one man, thanks for commenting!
@danielcallaghan6892
@danielcallaghan6892 2 жыл бұрын
aweome, very clear!
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thank you!
@DemelashShimekit
@DemelashShimekit 7 ай бұрын
Thank you
@bugbytes3923
@bugbytes3923 7 ай бұрын
Thanks for watching!
@chaseeby100
@chaseeby100 Жыл бұрын
Thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot for watching!
@fernandtape9363
@fernandtape9363 2 жыл бұрын
Hi Bugbytes, thanks for this new video. Can this model inheritance be used in product variation of an eccommerce? If yes, how?
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks for commenting. Yes, you may have multiple different types of products, each with their own fields. But there may be a common set of fields that you can define on a base class (this could be an abstract model, or you could go with the multi-table inheritance approach). For example, all products would have a "price", so it makes sense to use this on a base class. But certain products may have different, specific fields. A clothing product may have fields such as "size", whereas a food/drink product may have fields such as "calories". These would belong in the subclasses. I hope that makes sense!
@MagnusAnand
@MagnusAnand 2 жыл бұрын
It would be cool if you could make a video about using composition in Django 💪
@sarozpradhan64
@sarozpradhan64 Жыл бұрын
I used field created_at and updated_at in CommonField class and inherited but how do i make sure that the created_at and updated_at columns are at last of the table because when i inherited it, it comes at first of the table.
@MagnusAnand
@MagnusAnand Жыл бұрын
An issue with Multiple Inheritance is that you can have a performance hiy if your database is too large, because in has to make joins for every query.
@truthdawn7773
@truthdawn7773 2 жыл бұрын
❤️👌
@bugbytes3923
@bugbytes3923 2 жыл бұрын
Thanks! 😄
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 95 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Django Conditional Expressions / Case() and When() objects
36:26
Learn the basics of Django's Model Managers and Querysets
19:38
Matt Freire
Рет қаралды 45 М.
Django Aggregation
19:13
Very Academy
Рет қаралды 18 М.