{"categories":["Django"],"image_url":null,"url":"https://nihaoshijie.hatenadiary.jp/entry/2014/06/07/183537","published":"2014-06-07 18:35:37","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnihaoshijie.hatenadiary.jp%2Fentry%2F2014%2F06%2F07%2F183537\" title=\"How to access a child models or classes in Django, or how to cast models in Django. - \" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"domodomodomo","type":"rich","provider_name":"Hatena Blog","title":"How to access a child models or classes in Django, or how to cast models in Django.","provider_url":"https://hatena.blog","description":"https://django-polymorphic.readthedocs.org/en/latest/ \"\"\"\"\"\" The bellow text will be deleted \"\"\"\"\"\"Let's think by giving a actual example...models.py from django.db import models class Person(models.Model): name = models.CharField(max_length=200) class Student(Person): student_num = models.IntegerFi\u2026","width":"100%","blog_title":"","blog_url":"https://nihaoshijie.hatenadiary.jp/","author_url":"https://blog.hatena.ne.jp/domodomodomo/"}