def get_content_type(self): if self.custom_type is not None: return self.custom_type return StaticFileHandler.get_content_type(self)