title: Django DetailView + show related record of another Model
body: <p>I would like to return to the User related record.
  Somebody can help me?</p>
  
  <p>part of my view</p>
  
  <pre><code>class UserProfileDetailView(DetailView):
      model = get_user_model()
      slug_field = "username" 
      template_name = "perfil.html"
  
      def get_object(self, queryset=None):
          user = super(UserProfileDetailView, self).get_object(queryset)
          UserProfile.objects.get_or_create(user=user)
          return user
  
  
  Something like a old way&gt;
  def my_view(request, slug):
      var = get_object_or_404(Model, slug=slug)
      xxx = AnotherModel.objects.filter(var=var)
  ...
  </code></pre>
  
  <p>how can i perfome this in the first view UserProfileDetailView,
  show related data?</p>