Ejemplo 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
Ejemplo 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)
Ejemplo 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)
Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo n.º 9
0
def test(self):
    if self.aaa is None:
        return ImportMixin(ImportExportMixinBase).get_skip_admin_log()
    else:
        return self.aaa
Ejemplo 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