title: Additional Foreign Key Query in Django
body: <p>I am a newbie to django and was reading about <code>select_related</code>. I understand that whenever a foreign key is accessed django executes an additional query. But when I checked with <code>DEBUG</code> log in my code, it seems django executes <code>two</code> queries no matter if the foreign key is accessed or not. Can someone explain this behaviour ?</p>
  <pre><code>class Person(models.Model):
      # ...
      name = models.CharField(max_length=250)
  
  class Book(models.Model):
      # ...
      author = models.ForeignKey(Person, on_delete=models.CASCADE)
  
  </code></pre>
  <p>As per doc</p>
  <pre><code># Without select_related()...
  b = Book.objects.get(id=4)  # Executes a query.
  p = b.author         #Executes a query.
  </code></pre>
  <p>But with the get() it executes two queries</p>
  <pre><code>b = Book.objects.get(id=4)  # Executes two queries (one for books one for author).
  
  </code></pre>