title: Populate Month Based on Date Field in Django
body: <p>I would like to have a field auto-generate the month based on the date entered before it. </p>
  
  <p>models.py</p>
  
  <pre><code>class Projects(models.Model):
      Name = models.CharField(max_length=100, null=True, blank=False) 
      Date = models.DateField(null=True, blank=False)
      Month = models.CharField(max_length=100, null=True, blank=False)   
  
          def get_month(self):
              if self.Date:
                  self.Month = self.Date.strftime("%B")
                  self.save()
  </code></pre>
  
  <p>I saw this <a href="https://stackoverflow.com/questions/23352305/how-do-i-extract-day-month-year-from-a-datefield-object">question</a> on SO and tried it out, but nothing seems to be happening. What am I missing? Do I have to create one of <a href="https://docs.djangoproject.com/en/1.9/ref/models/fields/#choices" rel="nofollow noreferrer">these</a>? Thanks.</p>