Esempio n. 1
0
 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
Esempio n. 2
0
 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)
Esempio n. 4
0
 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)
Esempio n. 6
0
 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
Esempio n. 7
0
 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
Esempio n. 8
0
 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
Esempio n. 9
0
def test(self):
    if self.aaa is None:
        return ImportMixin(ImportExportMixinBase).get_skip_admin_log()
    else:
        return self.aaa
Esempio n. 10
0
 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