title: Get relationship model name of object Django
body: <p>I'm trying to get the model name for different objects:</p>
  
  <p>This kinda works:</p>
  
  <pre><code>last_profile = Profile.object.last()
  
  profile.__class__._meta.verbose_name // 'profile'
  </code></pre>
  
  <p>But not for a compounded model name such <code>ProfileLogin</code>:</p>
  
  <pre><code>last_profile_login = ProfileLogin.objects.last()
  last_profile_login.__class__._meta.verbose_name // 'profile login'
  </code></pre>
  
  <p>I would like the last example to be <code>profile_login</code>.</p>
  
  <p>The reason, I'm doing this is to create a dynamic query using filter().</p>