def __init__(self, file_contents=None, content_type=None, file_name=None, *args, **kwargs):
super(WsFileResponse, self).__init__(*args, **kwargs)
self.content = ContentFile(file_contents)
self["Content-Disposition"] = "attachment; filename=%s" % (file_name,)
self["Content-Type"] = content_type
# Static Methods
# Class Methods
# Public Methods
# Protected Methods
# Private Methods
# Properties
# Representation and Comparison
评论列表
文章目录