title: int() argument must be a string, a bytes-like object or a number, not 'method'
body: <p>In django 1.8 /python 3.4</p>
  
  <p>How can I do method to int？</p>
  
  <p>example:</p>
  
  <p>models.py</p>
  
  <pre><code>class Bid(models.Model):
      bid_Price = models.IntegerField(default=1)
  
      def __str__(self):
          return self.bid_Price
  
      def topPrice(self):
          return 100
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>def BidView(request, bid_id):
      bid_data = Bid.objects.get(id=bid_id)
      if int(bid_data.topPrice_text) &lt; 100):
  </code></pre>