

def save(self, *args, **kwargs):
    "\n        Adds today's date to the slug of a new live blog to avoid collisions.\n        "
    if self.is_live_blog:
        date_slug = slugify(date.today().strftime('%Y %b %d'))
        self.slug = self.slug[:38]
        self.slug = ('%s-%s' % (self.slug, date_slug))
    super(Blog, self).save(*args, **kwargs)

dataset/ETHPy150Open albatrossandco/brubeck_cms/brubeck/blogs/models.py Blog.save/original