title: Foreign Key Relations between 2 apps and User model
body: <p>I have one app in which a model extends the User mode.</p>
  
  <pre><code>class ExtendedUser (models.Model):
      user = models.ForeignKey(User)
      favorite_color = models.CharField(...
      #...
  </code></pre>
  
  <p>I have another app that also has a foreignkey with the user model. </p>
  
  <p>I wanted to know how can I access all the information related to a particular user?</p>
  
  <p>My problem comes when I try to make inverse relationships (I think), here is what I try:</p>
  
  <pre><code>&gt;&gt;from django.contrib.auth.models import User
  &gt;&gt;from firstapp.models import ExtendedUser
  
  &gt;&gt;a = User.objects.get(pk=1)
  &gt;&gt;a
  &lt;User: username1&gt;
  &gt;&gt;b = a.favorite_color
  AttributeError: 'User' object has no attribute 'favorite_color'
  &gt;&gt;c = ExtendedUser.objects.get(pk=1)
  &gt;&gt;c
  &lt;User: username1&gt;
  &gt;&gt;c.favorite_color
  &lt;Favorite_color: blue&gt;
  </code></pre>
  
  <p>The problem is when I am on "a" I cannot access the extended model information on the user, such as "favorite_color", and when I am on "c" I cannot access the User model native info such as email or perms.  Is there a way to do this?</p>
  
  <p>And also,</p>
  
  <p>Is there a way where I can pick one user id and see all the fields (from all models and apps) that are related to that object?  </p>