def METHOD_NAME(self):
    # import here to prevent circular imports!
    from portfolios.views import is_acceptable_image_type, is_acceptable_vid_type
    filename = os.path.basename(self.docfile.name)
    return is_acceptable_image_type(filename) or is_acceptable_vid_type(filename)