title: Django foreign key query, why it returns None?
body: <p>When I try to query foreign keys using get(), I always get <code>None</code> values, even though I know they are set to 1 in the DB. Am I missing something here? Should I do something different to get the foreignkey values?</p>
  
  <p>Here's what the code looks like:</p>
  
  <pre><code>class Car_to_brand( models.Model ):
      brand_id = models.ForeignKey( Brand, db_column='brand_id' )
      ...
  
  class Brand( models.Model ):
      (id is not defined here but it's the primary key)
      ...
  
  print Car_to_brand.__dict__.get( brand_id )
  </code></pre>
  
  <p>That would give me <code>{brand_id:None}</code>, but it should be <code>{brand_id:1}</code>.</p>