title: How to change class attributes using a method?
body: <p>I know this is maybe a dumb question but I haven't found a solution yet.</p>
  
  <p>I have a Django model class who has some default attributes, and I want to change the value of the complete variable by calling a function:</p>
  
  <pre><code>class Goal(models.Model):
      text = models.CharField(max_length=500)
      date = models.DateTimeField(auto_now=True)
      complete = False
  
      def set_complete_true():
          complete = True
  </code></pre>
  
  <p>But after calling set_complete_true() the complete variable still False, doesn't change.</p>
  
  <p>Thanks in advance!</p>