title: How do you call a method from a model, in the Django Shell?
body: <p>I have a simple model like </p>
  
  <pre><code>from django.db import models
  
  class Publisher(models.Model):
      name = models.CharField(max_length=30)
      address = models.CharField(max_length=50)
      city = models.CharField(max_length=60)
      state_province = models.CharField(max_length=30)
      country = models.CharField(max_length=50)
      website = models.URLField()
  
      def getJustDomainName(self):
          """ for example, if website is http://www.someweb.com/index.html, return someweb.com """
          return '0'; #TODO
  </code></pre>
  
  <p>I didn't actually implement the method <code>getJustDomainName</code> name here because I am just using this as an example.</p>
  
  <p>I want to test this method in the Django Shell. So I tried doing something like;</p>
  
  <pre><code>Publisher.objects.all()[0].getJustDomainName
  </code></pre>
  
  <p>but in return I get </p>
  
  <pre><code>&lt;bound method Publisher.getJustWebsiteName of &lt;Publisher: Publisher(#1): RandomHouse&gt;&gt;
  </code></pre>
  
  <p>which is not what I'm expecting. I'm expecting (and desiring) a result that returns what the function returns.</p>
  
  <p>How do I call this model method properly from the shell?</p>