Merge pull request #342 from Mogost/fix-341

Fix #341
This commit is contained in:
Alexandr Artemyev 2019-09-16 15:12:41 +03:00 committed by GitHub
commit db3f6e6e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -15,11 +15,12 @@ from django.core.files.storage import default_storage
from django.forms import fields
from django.http import HttpResponseRedirect
from django.template.response import TemplateResponse
from django.utils import six, timezone
from django.utils import timezone
from django.utils.encoding import smart_bytes
from django.utils.formats import localize
from django.utils.module_loading import import_string
from django.utils.translation import ugettext_lazy as _
import six
from . import LazyConfig, settings
from .checks import get_inconsistent_fieldnames

View file

@ -1,6 +1,5 @@
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
from django.utils.six.moves import zip
import six
from . import Backend
from .. import settings, utils, signals, config
@ -43,7 +42,7 @@ class RedisBackend(Backend):
if not keys:
return
prefixed_keys = [self.add_prefix(key) for key in keys]
for key, value in zip(keys, self._rd.mget(prefixed_keys)):
for key, value in six.moves.zip(keys, self._rd.mget(prefixed_keys)):
if value:
yield key, loads(value)

View file

@ -54,6 +54,7 @@ setup(
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
install_requires=['six'],
extras_require={
'database': ['django-picklefield'],
'redis': ['redis'],

View file

@ -8,7 +8,7 @@ from django.core.management import call_command, CommandError
from django.test import TransactionTestCase
from django.utils import timezone
from django.utils.encoding import smart_str
from django.utils.six import StringIO
from six import StringIO
from constance import config