Auto-generate a slug from the name.

def save(self, *args, **kwargs):
        """Auto-generate a slug from the name."""
        self._create_slug()
        self._create_date_slug()
        self._render_content()

        # Call ``_set_published`` the *first* time this Entry is published.
        # NOTE: if this is unpublished, and then republished, this method won't
        # get called; e.g. the date won't get changed and the
        # ``entry_published`` signal won't get re-sent.
        send_published_signal = False
        if self.published and self.published_on is None:
            send_published_signal = self._set_published()

        super(Entry, self).save(*args, **kwargs)

        # We need an ID before we can send this signal.
        if send_published_signal:
            entry_published.send(sender=self, entry=self)