<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atasatamatara</author_name>
  <author_url>https://blog.hatena.ne.jp/atasatamatara/</author_url>
  <blog_title>憧れ駆動開発</blog_title>
  <blog_url>https://atasatamatara.hatenablog.jp/</blog_url>
  <categories>
    <anon>Django</anon>
  </categories>
  <description>自己責任で あってるか検証しようとして簡単なModelつくろうとしたけどなんかうまくいかないからメモがき ForeignKeyは1:Nなのは知ってる BlogModelが1としてEntryModelがNならEntryModelにForeignKeyをはる この場合 blog.entrymodel_set でクエリセットがとれる modelを小文字で、 _set をつける。_setがついているほうがNである filterの複合 普通にチェインするなら ObjModel.objects.filter(name=name).filter(user=user)とかできる 複合する場合は ObjMode…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatasatamatara.hatenablog.jp%2Fentry%2F20120730%2F1343650783&quot; title=&quot;ForeignKeyとfilterのメモ - 憧れ駆動開発&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://a0.twimg.com/profile_images/2379431088/vl1zan7p9yz8nvb5n4dm_normal.jpeg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-30 21:19:43</published>
  <title>ForeignKeyとfilterのメモ</title>
  <type>rich</type>
  <url>https://atasatamatara.hatenablog.jp/entry/20120730/1343650783</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
