title: Django query single underscore behaving like double underscore?
body: <p>I made a typo in my code recently and noticed that I got the same behavior, so I was wondering what the difference between single and double underscores are in django queries.</p>
  
  <pre><code>&gt;&gt;&gt; underscore = MyModel.objects.filter(foreign_key_id=var)
  &gt;&gt;&gt; double_underscore =  MyModel.objects.filter(foreign_key__id=var)
  &gt;&gt;&gt; underscore == double_underscore
  False
  &gt;&gt;&gt; list(underscore) == list(double_underscore)
  True
  </code></pre>
  
  <p>I'm not sure what equality method is being used to compare the querysets, but when I convert to python lists I find exactly the same elements contained within. Does anyone have some insight into what's going on here?</p>