def get_export_filename(self, request, queryset, file_format):
old_name = super().get_export_filename(request, queryset, file_format)
date = datetime.now().strftime('%Y%m%d')
return quote_plus(self.model._meta.verbose_name + f'-{date}.' + old_name.split('.', -1)[-1])
标签:old,name,format,self,导出,Django,export,file,表名
From: https://www.cnblogs.com/jubai/p/16769815.html