def get_template_names(self):
        """
        Return the page's specified template name, or a fallback if one hasn't been chosen.
        """
        posted_name = self.request.POST.get('template_name')
        if posted_name:
            return [posted_name,]
        else:
            return super(PagePreviewView, self).get_template_names()
Return the page's specified template name, or a fallback if one hasn't been chosen.