title: Django 1.7 recursive query values?
body: <p>I am looking for a pythonic way to query something like this:</p>
  
  <pre><code># Models
  from django.contrib.auth.models import User
  
  
  class UserProfile(models.Model):
      user = models.OneToOneField(User, related_name='user_profile_set')
      district = models.ForeignKey(District)
      ...
  
  
  class District(models.Model):
      name : ...
  </code></pre>
  
  <p>I'd like to get a list of district (or pks) like what you get when use <code>values_list</code> method, but making the query to User Model. I've tried this:</p>
  
  <pre><code>User.objects.select_related('user_profile').values('user_profile_set__district__pk')
  User.objects.all().values('user_profile_set__district__name')
  User.objects.all().values_list('user_profile_set__district__name')
  </code></pre>
  
  <p>But nothing works, I am using django 1.7 (<code>depth</code> parameter is not longer available for <code>select_related</code> method). Thanks in advance.</p>