Ticket #7658: tempfile.2.diff

File tempfile.2.diff, 1.0 KB (added by axiak, 7 years ago)

Updated tempfile diff to fix AttributeError problem.

  • django/core/files/uploadedfile.py

     
    33"""
    44
    55import os
    6 import tempfile
    76import warnings
    87try:
    98    from cStringIO import StringIO
     
    1211
    1312from django.conf import settings
    1413
     14from django.core.files import temp as tempfile
     15
    1516__all__ = ('UploadedFile', 'TemporaryUploadedFile', 'InMemoryUploadedFile', 'SimpleUploadedFile')
    1617
    1718# Because we fooled around with it a bunch, UploadedFile has a bunch
  • tests/regressiontests/file_uploads/tests.py

     
    11import os
    22import sha
    3 import tempfile
     3from django.core.files import temp as tempfile
    44from django.test import TestCase, client
    55from django.utils import simplejson
    66
Back to Top