title: def __str__(self) return doesnt work - python 3.6/ Django 1.11.6
body: <p><a href="https://i.stack.imgur.com/mjAiZ.jpg" rel="nofollow noreferrer">Screenshot of My Admin section</a>The following is my code in the models.py file:</p>
  
  <pre><code>from django.db import models
  
  # Create your models here.
  class RestaurantLocation(models.Model):
      name     = models.CharField(max_length=120)
      location = models.CharField(max_length=120, null=True, blank=True)
      category = models.CharField(max_length=120, null=True, blank=True)
  
      def __str__(self):
          return self.name
  </code></pre>
  
  <p>Instead of returning the restaurant name, it returns "RestaurantLocation object" in the output window of the admin section.
  Where am I going wrong?</p>