Ticket #16590: patch.diff
File patch.diff, 619 bytes (added by , 13 years ago) |
---|
-
django/core/files/base.py
122 122 """ 123 123 A File-like object that takes just raw content, rather than an actual file. 124 124 """ 125 def __init__(self, content ):125 def __init__(self, content, name=None): 126 126 content = content or '' 127 super(ContentFile, self).__init__(StringIO(content) )127 super(ContentFile, self).__init__(StringIO(content), name=name) 128 128 self.size = len(content) 129 129 130 130 def __str__(self):