JSONField has updated, the patch is no longer needed. Horray!

This commit is contained in:
Hameed Gifford 2020-02-13 15:13:56 -05:00
parent 80830d1559
commit 9596b599ad
No known key found for this signature in database
GPG key ID: 488194BBA70CF1E2
2 changed files with 2 additions and 16 deletions

View file

@ -11,16 +11,3 @@
__version__ = '1.4.0'
default_app_config = 'notifications.apps.Config' # pylint: disable=invalid-name
# patch jsonfield expectations until they actually update
def _patch_jsonfield_six():
import django
if django.VERSION >= (3,):
from django import utils
import six
utils.six = six
_patch_jsonfield_six()
del _patch_jsonfield_six

View file

@ -28,15 +28,14 @@ setup(
install_requires=[
'django>=2.2',
'django-model-utils>=3.1.0',
'jsonfield>=1.0.3',
'six', # for jsonfield on django 3.0 until it drops py2 compat
'jsonfield>=2.1.0',
'pytz',
'swapper'
],
test_requires=[
'django>=2.2',
'django-model-utils>=3.1.0',
'jsonfield>=1.0.3',
'jsonfield>=2.1.0',
'pytz'
],
packages=[