def django_file(file_obj, field_name, content_type):
return InMemoryUploadedFile(
file=file_obj,
field_name=field_name,
name=file_obj.name,
content_type=content_type,
size=file_obj.size,
charset=None
)
评论列表
文章目录