def get_tmp_storage_class(self): if self.tmp_storage_class is None: # return TMP_STORAGE_CLASS # 兼容django_import_export 2.5.0 return ImportMixin(ImportExportMixinBase).tmp_storage_class() else: return self.tmp_storage_class
def get_skip_admin_log(self): if self.skip_admin_log is None: # return SKIP_ADMIN_LOG # 兼容django_import_export 2.5.0 return ImportMixin(ImportExportMixinBase).get_skip_admin_log() else: return self.skip_admin_log
def process_import(self, request, *args, **kwargs): return _ImportMixin.process_import(self, request, *args, **kwargs)
def get_tmp_storage_class(self): if self.tmp_storage_class is None: # return TMP_STORAGE_CLASS return ImportMixin(ImportExportMixinBase).get_tmp_storage_class() else: return self.tmp_storage_class
def import_action(self, request, *args, **kwargs): return _ImportMixin.import_action(self, request, *args, **kwargs)
def get_skip_admin_log(self): if self.skip_admin_log is None: # return SKIP_ADMIN_LOG return ImportMixin(ImportExportMixinBase).get_skip_admin_log() else: return self.skip_admin_log
def get_tmp_storage_class(self): if self.tmp_storage_class is None: return ImportMixin.get_tmp_storage_class() else: return self.tmp_storage_class
def get_skip_admin_log(self): if self.skip_admin_log is None: return ImportMixin.get_skip_admin_log() else: return self.skip_admin_log
def test(self): if self.aaa is None: return ImportMixin(ImportExportMixinBase).get_skip_admin_log() else: return self.aaa
def get_tmp_storage_class(self): if self.tmp_storage_class is None: return return ImportMixin(ImportExportMixinBase).get_tmp_storage_class() else: return self.tmp_storage_class