title: Django - How to use a filter with a foreign key field?
body: <p>I'm trying to do this:</p>
  
  <pre><code>LogEntry.objects.filter(content_type='visitor')
  </code></pre>
  
  <p>Where LogEntry is my model and content_type is a ForeignKey field pointing to another table with field id, and content_type (varchar).</p>
  
  <p>How can I search by the value of the other table?  When I try to run the above it says: </p>
  
  <pre><code>invalid literal for int() with base 10: 'visitor'
  </code></pre>