old_contents: import datetime
  
  from django.db import models
  
  class Reminder(models.Model):
      user = models.ForeignKey('account.User', related_name='reminders')
      message = models.CharField(blank=True, max_length=100)
      audio_url = models.CharField(blank=True, max_length=100)
      telnumber = models.CharField(max_length=200)
  
      def dispatch_task(self):
          from .tasks import send_reminder_task
          send_reminder_task.delay(self.pk)
  
  class Time(models.Model):
      reminder = models.ForeignKey('Reminder', related_name='times')
  
      time = models.CharField(max_length=5)
      last_run = models.DateTimeField(default=datetime.datetime.utcnow)
  
      created = models.DateTimeField(default=datetime.datetime.utcnow)
  
      class Meta:
          ordering = ('time',)
          unique_together = (
              ('reminder', 'time'),
          )
  
      def __unicode__(self):
          return u"#%d: %s: %s" % (
              self.pk,
              self.reminder,
              self.time,
          )
  
      def should_run(self):
          assert False, "FIXME"
  
      def run(self):
          self.reminder.dispatch_task()
          self.last_run = datetime.datetime.utcnow()
          self.save()
  
new_contents: import datetime
  
  from django.db import models
  
  class Reminder(models.Model):
      user = models.ForeignKey('account.User', related_name='reminders')
      message = models.CharField(blank=True, max_length=100)
      audio_url = models.CharField(blank=True, max_length=100)
      telnumber = models.CharField(max_length=200)
  
      created = models.DateTimeField(default=datetime.datetime.utcnow)
  
      def dispatch_task(self):
          from .tasks import send_reminder_task
          send_reminder_task.delay(self.pk)
  
  class Time(models.Model):
      reminder = models.ForeignKey('Reminder', related_name='times')
  
      time = models.CharField(max_length=5)
      last_run = models.DateTimeField(default=datetime.datetime.utcnow)
  
      created = models.DateTimeField(default=datetime.datetime.utcnow)
  
      class Meta:
          ordering = ('time',)
          unique_together = (
              ('reminder', 'time'),
          )
  
      def __unicode__(self):
          return u"#%d: %s: %s" % (
              self.pk,
              self.reminder,
              self.time,
          )
  
      def should_run(self):
          assert False, "FIXME"
  
      def run(self):
          self.reminder.dispatch_task()
          self.last_run = datetime.datetime.utcnow()
          self.save()
  
subject: Add a `created` field