diff options
Diffstat (limited to 'tests/model_forms/models.py')
-rw-r--r-- | tests/model_forms/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py index d2b55c4e10..ac3c6062a2 100644 --- a/tests/model_forms/models.py +++ b/tests/model_forms/models.py @@ -17,10 +17,9 @@ from django.core.exceptions import ValidationError from django.core.files.storage import FileSystemStorage from django.db import models from django.utils import six +from django.utils._os import upath from django.utils.encoding import python_2_unicode_compatible from django.utils.six.moves import range -from django.utils._os import upath - temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) temp_storage = FileSystemStorage(temp_storage_dir) |