title: Django Admin Adding data
body: <p>I am trying to learn Django through Coding for Entrepreneur. The problem is in the tutorial, when the tutor adds the models in the admin.py, the values of the fields are shown. While I do it, it shows "something object" only. </p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>from django.db import models
  
  class Join(models.Model):
      email = models.EmailField() 
      ref_id = models.CharField(max_length=120, default='ABC', unique=True)
      ip_address = models.CharField(max_length=120, default='ABC')
      timestamp = models.DateTimeField(auto_now_add = True, auto_now = False)
      updated = models.DateTimeField(auto_now_add = False, auto_now = True)   
  
      def __unicode__(self):
          return "%s" %(self.email)
  
      class Meta:
          unique_together = ("email", "ref_id",)
  
  
  class JoinFriends(models.Model):
      email = models.OneToOneField(Join, related_name="Sharer")
      friends = models.ManyToManyField(Join, related_name="Friend", null=True, blank=True)
      emailall = models.ForeignKey(Join, related_name="emailall")
  
      def __unicode__(self):
          print(self.friends.all())
          print(self.emailall)
          print(self.email)
          return (self.friends.all()[0].email)
  </code></pre>
  
  <p><strong>admin.py</strong></p>
  
  <pre><code>from django.contrib import admin
  from .models import Join, JoinFriends 
  
  class JoinAdmin(admin.ModelAdmin):
      list_display = ['__unicode__', 'timestamp', 'updated']
  
      class Meta:
          model = Join
  
  admin.site.register(Join, JoinAdmin)
  admin.site.register(JoinFriends)
  </code></pre>
  
  <p><strong>How it should be</strong>
  <img src="https://i.stack.imgur.com/lGN5u.png" alt="enter image description here">
  <strong>How it is happening when I am doing it</strong>
  <img src="https://i.stack.imgur.com/yE8ry.png" alt="enter image description here">
  How can I solve this problem.</p>
  
  <p>Thank you for the help</p>
  
  <p>The above shown page should come when clicked on Add join friends. It is shown perfectly in the following page when I add the following code as well in admin.py</p>
  
  <pre><code>class FriendAdmin(admin.ModelAdmin):
      list_display = ['__unicode__']
  
  
  admin.site.register(JoinFriends, FriendAdmin)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nvesG.png" alt="enter image description here">
  However, when I click on Add join friends, the page is as shown above in figure1.</p>
  
  <p><img src="https://i.stack.imgur.com/uvITO.png" alt="enter image description here"></p>
  
  <p><strong>When using def __str___(self) function:</strong></p>