title: Setting yesterday as initial date in a Django Form
body: <p>I want to set the initial date as yesterday in a django form my code is here:</p>
  
  <pre><code>class Bilag(models.Model):
  dato = models.DateField()
  tekst = models.CharField(max_length=100)
  konto = models.CharField(max_length=10)
  avd = models.CharField(max_length=10, null=True,blank=True)
  avdnavn = models.CharField(max_length=30, null=True,blank=True)
  kasseid = models.CharField(max_length=10)
  belop = models.FloatField()
  def __unicode__(self):
      return self.tekst
  
  class BilagForm(ModelForm):
  class Meta:
      model = Bilag
      widgets = {
          'dato': SelectDateWidget()
      }
      initial = {
          'dato': yesterday()
      }
  </code></pre>
  
  <p>and the yesterday function:</p>
  
  <pre><code>def yesterday():
      yesterday = (datetime.date.today() - datetime.timedelta(1))
      return yesterday
  </code></pre>
  
  <p>But it just displays todays date when i look at the form</p>