<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>at_yasu</author_name>
  <author_url>https://blog.hatena.ne.jp/at_yasu/</author_url>
  <blog_title>at_yasu's blog</blog_title>
  <blog_url>https://atys.hateblo.jp/</blog_url>
  <categories>
    <anon>django</anon>
  </categories>
  <description>よく忘れてGoogle先生に尋ねる羽目になるのでメモ書き。Djangoのデータベースラッパであるfilterを使う時、SQLで言う「where a like ...」や「where a &gt; 0」とかを、filterではどう書くのか忘れます。例えば完全一致だと、SQLの場合は「where a == ...」ですがfilterの場合は「filter(a__exact=...)」ないしは「filter(a=...)」となります。 ちなみに、DBソフトによっては、大文字小文字区別が無かったりします。 挙動 SQL上での演算子 Django Filter 例 完全一致 = a*1 a = ... 完全一…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatys.hateblo.jp%2Fentry%2F20090226%2Fp1&quot; title=&quot; クエリーセットのfilterメソッド - at_yasu&amp;#39;s blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-02-26 00:00:00</published>
  <title> クエリーセットのfilterメソッド</title>
  <type>rich</type>
  <url>https://atys.hateblo.jp/entry/20090226/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
