'Validate the content, performing any section editing if necessary'

def clean_content(self):

    content = self.cleaned_data['content']
    if (self.section_id and self.instance and self.instance.document):
        full_content = self.instance.document.current_revision.content
        parsed_content = kuma.wiki.content.parse(full_content)
        parsed_content.replaceSection(self.section_id, content)
        content = parsed_content.serialize()
    return content
