Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate jsonfield_compat #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions djgeojson/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
warnings.warn('`django-leaflet` is not available.')
HAS_LEAFLET = False
try:
from jsonfield.fields import JSONField, JSONFormField
from jsonfield_compat.fields import JSONField, JSONFormField
except ImportError:
class Missing(object):
def __init__(self, *args, **kwargs):
err_msg = '`jsonfield` dependency missing. See README.'
err_msg = '`jsonfield-compat` dependency missing. See README.'
raise ImproperlyConfigured(err_msg)

JSONField = Missing
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'six',
],
extras_require={
'field': ['jsonfield', 'django-leaflet>=0.12'],
'field': ['django-jsonfield-compat', 'django-leaflet>=0.12'],
},
packages=find_packages(),
include_package_data=True,
Expand Down