def finalize_content_types(self, response):
        """
        Runs finalize() on content types having such a method, adds headers and
        returns the final response.
        """

        for content in self.object.content.all_of_type(
            tuple(self.object._feincms_content_types_with_finalize)
        ):
            r = content.finalize(self.request, response)
            if r:
                return r

        Runs finalize() on content types having such a method, adds headers and
        returns the final response.
        
feincms/module/mixins.py