def save(self, blog=None, author=None):
    post = super().save(commit=False)
    if blog:
        post.blog = blog
    if author:
        post.author = author
        post.image_set = ImageSet.objects.create(created_by=author)
    if self.section:
        post.section = self.section
    post.slug = slugify(post.title)
    post.markup = self.markup_choice
    return self.save_post(post)
def save(self, blog=None, author=None):
    post = super().save(commit=False)
    if blog:
        post.blog = blog
    if author:
        post.author = author
        post.image_set = ImageSet.objects.create(created_by=author)
    if self.section:
        post.section = self.section
    post.slug = slugify(post.title)
    post.markup = self.markup_choice
    return self.save_post(post)