title: How to get a name from Tempfriend object (1) in django?
body: <p>my <strong>tempfriends/models.py</strong></p>
  
  <pre><code>class Tempfriend(core_models.TimeStampedModel):
      name = models.CharField(max_length=30)
      belongs_to = models.ForeignKey(
          user_models.User, on_delete=models.CASCADE, related_name="belongs_to")
  </code></pre>
  
  <p>as you see, tempfriends have a relation with usermodels.</p>
  
  <p>so when user make a moneybook, user can choose there companion(tempfriends), but there is a problem.</p>
  
  <p>form.companion print out :</p>
  
  <p>Tempfriend object (1)</p>
  
  <p>these are the code.</p>
  
  <p><strong>moneybook_form.html</strong></p>
  
  <pre><code>&lt;div class="input {% if field.errors %}has_error{% endif %}"&gt;
              &lt;div class="flex"&gt;
                  &lt;div class="w-1/4"&gt;
                      {{form.companion.label}} 
                  &lt;/div&gt;
                  &lt;div class="w-3/4 flex inline border-b my-2 py-3"&gt;
                      &lt;div class="w-3/4"&gt;
                          {{form.companion}}
                      &lt;/div&gt;
                      &lt;div class= "w-1/4 flex justify-center "&gt;
                          &lt;a href="{% url 'tempfriends:create' %}"&gt;&lt;i class="fas fa-plus-circle"&gt;&lt;/i&gt;&lt;/a&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              {% if form.companion.errors %}
                  {% for error in form.companion.errors %}
                      &gt;&lt;span class="text-red-700 font-medium text-sm"&gt;{{error}}&lt;/span&gt;
                  {% endfor %}
              {% endif %}
          &lt;/div&gt;
  </code></pre>
  
  <p>how can I print <strong>object name</strong> instead of <strong>Tempfriend object (1)</strong>?</p>