-
Notifications
You must be signed in to change notification settings - Fork 398
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
[fix](notification) use model field JSONField from django.contrib #160
Conversation
@areski thanks for the contribution. But Travis check was failed, could you please take a look at it? |
I have done some more digging on this and the test break because the patch force the import of a Postgresql only field We could add A solution would be to add this before the import, FYI, there is also a Mysql json field that could be used Any recommendation? |
How about use django.db.connection.vendor to test if the database engine I'm worry about after switching to PostgreSQL or MySQL version of |
it's important to try to be backward compatible, I just added an extra line, see if that helps |
Hey guys.. any updates on this?? Would be nice to have this merged |
@psychok7 This patch still has a couple of problems:
Hope someone can find a better solution. |
Guys django-jsonfield and django 1.9> cannot be used together. We are using this package, and we are facing some issues because this project still uses django-jsonfield. See here for more info: https://bitbucket.org/schinckel/django-jsonfield/issues/57/cannot-use-in-the-same-project-as-djangos |
What about the current status of jsonfield, it seems they fixed their compatibility issue with Django 1.10 https://github.com/dmkoch/django-jsonfield/ |
Apparently the bug has been fixed. But they removed support for Django <= 1.7. I think we should do the same. |
What's the status of #160? I'm upgrading Django from 1.8 to 1.9 right now. Solving the issue of moving from That means that you have to do add a new migration that specifies that you want to use The other concern is what to do with the old migration file that imports the I hope there's a better solution. I'm interested in hearing your thoughts on this. PS the relevant issue that I'm working on is ospc-org/ospc.org#822. |
IMHO the best thing would be to give the possibility to enable postgres jsonfield explicitly with a setting, otherwise lots of users of this package may experience unexpected behaviour by this change. |
What is holding this up? It seems like a really straightforward improvement. |
Fixed on version 2 |
Using django-jsonfield doesn't work as it still use SubfieldBase which has been deprecated and removed in in Django 1.10.
This patch fallback on new JSONField from django.contrib when django version is >= 1.9.