{"url":"https://nagamitsu1976.hatenadiary.jp/entry/2017/06/22/174900","blog_title":"\u3072\u3053\u307d\u3093\u306e\u30fc\u3068","published":"2017-06-22 17:49:00","blog_url":"https://nagamitsu1976.hatenadiary.jp/","provider_name":"Hatena Blog","title":"Django\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3002 \u305d\u306e\uff15-Model\u306e\u8ffd\u52a0-","width":"100%","provider_url":"https://hatena.blog","type":"rich","author_url":"https://blog.hatena.ne.jp/nagamitsu1976/","categories":["Django\u3092\u3084\u3063\u3066\u307f\u3088\u3046","python"],"author_name":"nagamitsu1976","image_url":null,"version":"1.0","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnagamitsu1976.hatenadiary.jp%2Fentry%2F2017%2F06%2F22%2F174900\" title=\"Django\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3002 \u305d\u306e\uff15-Model\u306e\u8ffd\u52a0- - \u3072\u3053\u307d\u3093\u306e\u30fc\u3068\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u305d\u306e\uff14\u306e\u3064\u3065\u304d\u3002\u524d\u56de\u8ffd\u52a0\u3057\u305f\u3001warship\u30a2\u30d7\u30ea\u306b\u30e2\u30c7\u30eb\u3092\u8ffd\u52a0\u3057\u3066 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u89e6\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3046\u3002 Model\u306e\u4f5c\u6210 warship/models.py\u3092\u958b\u3044\u3066\u3001\u3053\u3053\u306b\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3092\u8a18\u8ff0\u3059\u308b\u3002 from django.db import models # Create your models here. class ShipClass(models.Model): name = models.CharField(max_length=30) class Warship(models.Model): ship_class = models.ForeignKey(ShipClass, on_\u2026"}