Repository: benkonrath/django-csv-export-view (language: python)

Issue:
Django 3.0 compatibility - Use six instead of django.utils.six 
The [Django 3.0 Release notes](https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis) mention that importing `django.utils.six` is no longer supported, and instead https://pypi.org/project/six/ should be used directly. 


Discussion / hints:

Fix patch:
diff --git a/csv_export/views.py b/csv_export/views.py
index abb98f4..71679e9 100644
--- a/csv_export/views.py
+++ b/csv_export/views.py
@@ -3,9 +3,9 @@
 
 import types
 
+import six
 from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured
 from django.http.response import HttpResponse
-from django.utils import six
 from django.utils.encoding import force_text
 from django.views.generic.base import View
 from django.views.generic.list import MultipleObjectMixin
diff --git a/setup.py b/setup.py
index b42e613..2ab2dd6 100644
--- a/setup.py
+++ b/setup.py
@@ -51,6 +51,7 @@ def get_version():
     install_requires=[
         'django>=1.11',
         'unicodecsv;python_version<"3.0"',
+        'six>=1.14'
     ],
     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
 
diff --git a/tox.ini b/tox.ini
index 11f1807..da71a63 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,6 +22,7 @@ deps=
   django-2.1: Django>=2.1,<2.2
   django-2.2: Django>=2.2,<3.0
   django-master: https://github.com/django/django/archive/master.tar.gz
+  six
   pytz
   unicodecsv
   coverage


Test patch:
diff --git a/tests/models.py b/tests/models.py
index f95e079..d8bb73d 100644
--- a/tests/models.py
+++ b/tests/models.py
@@ -1,5 +1,5 @@
 from django.db import models
-from django.utils.six import python_2_unicode_compatible
+from six import python_2_unicode_compatible
 
 
 class FieldTest(models.Model):