Selecting specific fields using select_related in Django : <p>I have two models Article and Blog related using a foreign key. I want to select only blog name while extracting the article.</p>

<pre><code>articles = Articles.objects.all().select_related('blog__name')
</code></pre>

<p>The query generated shows that it selected all the fields from the Blog model.
I tried using only() and defer() with select_related but both didn't work out.</p>

<pre><code>articles = Articles.objects.all().select_related('blog__name').only('blog__name', 'title', 'create_time')
</code></pre>

<p>The above query resulted in error: Invalid field name(s) given in select_related: Choices are: blog</p>

<p>How do i generate a query so that only article fields and blog name is selected?</p>
