From 454fe5053bc796d73fcdf4330e03a9b9f2d24aa6 Mon Sep 17 00:00:00 2001 From: Jonathan Richards Date: Thu, 12 Dec 2019 18:46:46 -0800 Subject: [PATCH] Using six to add Django 3.0 support. Six still needs to be added as a requirement --- model_helpers.py | 3 ++- tests/test_key_value_field.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/model_helpers.py b/model_helpers.py index 3157792..d629d6a 100644 --- a/model_helpers.py +++ b/model_helpers.py @@ -1,8 +1,9 @@ +import six + from django.core.exceptions import ValidationError from os import path as fs_path from time import strftime from django.utils.text import slugify -from django.utils import six from django.utils.translation import ugettext as _ from django.core.cache import cache from django.conf import settings diff --git a/tests/test_key_value_field.py b/tests/test_key_value_field.py index 298ecb6..f34fbeb 100644 --- a/tests/test_key_value_field.py +++ b/tests/test_key_value_field.py @@ -1,7 +1,8 @@ +import six + from nose import tools as test from sample.models import Team from django.core.exceptions import ValidationError -from django.utils import six def test_key_value_field():