{"width":"100%","published":"2012-07-26 22:24:58","provider_url":"https://hatena.blog","blog_title":"\u61a7\u308c\u99c6\u52d5\u958b\u767a","url":"https://atasatamatara.hatenablog.jp/entry/20120726/1343309098","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatasatamatara.hatenablog.jp%2Fentry%2F20120726%2F1343309098\" title=\"ForeignKey\u306e\u30e1\u30f3\u30d0\u30fc\u3092\u53d6\u3063\u3066\u3053\u308c\u308b\u4ef6 - \u61a7\u308c\u99c6\u52d5\u958b\u767a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/atasatamatara/","description":"ForeignKey\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u305f\u3044\u3078\u3093 \u305f\u3068\u3048\u3070\u3053\u3093\u306a models.py \u304c\u3042\u308b\u3068\u3059\u308b class User(models.Model): name = models.CharField(max_length=100) class Hoge(models.Model): hoge = models.CharField(max_length=100) moge = models.ForeignKey(User) \u3053\u3046\u3044\u3046\u3068\u304d\u306b HogeModel \u3092\u3064\u304b\u3063\u3066\u3044\u308b\u3068\u304d\u306b UserModel \u306e name \u3092\u66f4\u65b0\u3057\u305f\u3044\u3068\u304b\u6271\u3044\u305f\u3044\u3068\u304b\u3042\u308b\u3002\u305d\u3046\u3044\u3046\u3068\u304d\u306f # Model \u306e\u540d\u524d\u306f\u5c0f\u6587\u5b57\u306b\u3059\u308b\u2026","height":"190","title":"ForeignKey\u306e\u30e1\u30f3\u30d0\u30fc\u3092\u53d6\u3063\u3066\u3053\u308c\u308b\u4ef6","image_url":null,"categories":["Django"],"type":"rich","author_name":"atasatamatara","blog_url":"https://atasatamatara.hatenablog.jp/"}