-
Notifications
You must be signed in to change notification settings - Fork 485
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
JSONfield compatability #449
Comments
I for one, would like this to happen |
@cobyrne09 Thanks for mentioning this, did you run into actual problems trying to get
To summarize: Having a fresh look at which types of JSONFields are supported and how we pick one is welcome. Pinging @auvipy for his input 👋 |
Hoping for this one in the future to ease the struggle: django/django#12392 |
please remove django-jsonfield-compat dependency, nobody takes care of this package. |
@travijuu is there an actual problem you are running into right now because of the mentioned package or just fear it may happen in the future? |
@cb109 When I try to use django-activity-stream with Django 3.0, I got error below
Note: both django-jsonfield and django-jsonfield-compat already installed. When I dig into error, I see invalid import statement of six in this link.
after I replaced this line with |
FWIW: I did run into a peculiar crash related to mixing django-jsonfield-compat with django_schemas. It seems like somewhere between the two, they get into a circular dependency. The only way I could get around this was disable USE_JSONFIELD for actstream and tear out django-jsonfield-compat.
(Admittedly, not actstream's fault, but related to the use of the old jsonfield packages.) |
Just noting, the dj31 jsonfield is also available as https://github.com/laymonage/django-jsonfield-backport , and it supports most dbs |
contributions wellcome |
I'd like to provide a pull request. However there are some design decisions to be clarified in advance. As django-jsonfield-backport will make the JSONField available in all Django versions supported by this app (>= 2.2) and all major databases, there is no need to make it optional anymore.
|
@lociii , IMO that sounds like a good approach. |
while I support number 1, but the 2nd one needs to go through a deprecation warning to keep BC. |
OK, then let's start with replacing the libs. |
yeah sure, I goose step at a time |
Switch from all the different libraries to Django built-in JSONField or the backported package has been merged. |
This package is currently importing
JSONfield
from eitherdjango-jsonfield
+django-jsonfield-compat
ordjango_mysql
, however thedjango-jsonfield
/django-jsonfield-compat
combination only supports up to django 1.9.I can make a PR for importing from the current preferred location,
django.contrib.postgres.fields
, but I just need to know if you'd also want to continue support for django =< 1.9 and therefore allow import from the existing packages.I am not a mysql user, but it appears no change is needed there, and importing from
django_mysql
is still the preferred method.The text was updated successfully, but these errors were encountered: