def get_filename(self):
        try:
            name = self.file_name or self.file_obj.name
        except __HOLE__:
            name = ''
        if not name and self.get_revision():
            name = self.get_current_file_revision_data()['name']
        return name
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/models.py/Document.get_filename