{ "info": { "author": "Keith Bussell", "author_email": "kbussell@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "django-jsonfield-compat\n=======================\n\n![Travis Build Status](https://travis-ci.org/kbussell/django-jsonfield-compat.svg?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/kbussell/django-jsonfield-compat/badge.svg?branch=master)](https://coveralls.io/github/kbussell/django-jsonfield-compat?branch=master)\n\nDjango 1.9 introduced first-class support for Postgresql's json type. \n\nNot everyone uses Postgresql, nor has upgraded to 1.9 yet, so a mixed ecosystem exists. \nUnfortunately, these two field types cannot be used together in the same project.\n\ndjango-jsonfield-compat was created to be able to allow 3rd-party libraries to work in both worlds.\n\nRequires Django >= 1.8\n\nInstallation\n------------\n\n`pip install django-jsonfield-compat`\n\nAdjust all instances of importing `JSONField` and `JSONFormField` to `jsonfield_compat`'s definition (including all migration files!)\n\n```\nfrom jsonfield_compat import JSONField\nfrom jsonfield_compat.forms import JSONFormField\n```\n\nRegister your app from the AppConfig class's `ready()` function.\n\nExample `apps.py`:\n\n```\nfrom __future__ import unicode_literals\n\nfrom django.apps import AppConfig\n\n\nclass MyAppConfig(AppConfig):\n name = 'myapp'\n verbose_name = \"My App\"\n\n def ready(self):\n import jsonfield_compat\n jsonfield_compat.register_app(self)\n```\n\n\nNow, when users of your application want to switch from using `django-jsonfield`'s implementation \nto Django's native `JSONField`, they add the setting:\n\n```\nUSE_NATIVE_JSONFIELD = True\n```\n\nAnd then run migrations to convert the app's DB tables to use the JSON column type.\n\n\nLicense\n-------\n\ndjango-jsonfield-compat is licensed under the MIT license (see the `LICENSE` file for details).", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/kbussell/django-jsonfield-compat/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-jsonfield-compat", "package_url": "https://pypi.org/project/django-jsonfield-compat/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-jsonfield-compat/", "project_urls": { "Homepage": "http://github.com/kbussell/django-jsonfield-compat/" }, "release_url": "https://pypi.org/project/django-jsonfield-compat/0.4.4/", "requires_dist": null, "requires_python": "", "summary": "Compatability layer between django-jsonfield and Django's native JSONField", "version": "0.4.4" }, "last_serial": 2730884, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c566d046cb0bb968b0c7ae2584118f6d", "sha256": "8a45d2c5ad52cade07d64dc215bc3185683caccbdb517ae661ceac2ff764893e" }, "downloads": -1, "filename": "django_jsonfield_compat-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "c566d046cb0bb968b0c7ae2584118f6d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4648, "upload_time": "2017-01-08T22:31:20", "url": "https://files.pythonhosted.org/packages/58/43/3c7607a0ba963526ca7ebfd8e7880ef348b8adc5d07eb69f0ac16f65fc28/django_jsonfield_compat-0.1.0-py2-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "61a39ed1c07a5f30209427be3d3cbee9", "sha256": "bc1662ffb87e766381c9663afe178ccee9c45dda8578465d996efc1ee54d82ee" }, "downloads": -1, "filename": "django_jsonfield_compat-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "61a39ed1c07a5f30209427be3d3cbee9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5274, "upload_time": "2017-01-09T03:24:04", "url": "https://files.pythonhosted.org/packages/84/e5/1216fa0bafa93bf7b6bb30f03e5cc765cc49bc1d974fa47a89b30f23b8da/django_jsonfield_compat-0.2.0-py2-none-any.whl" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b95b0da804b5ed677f5a73014817598d", "sha256": "64c5c55f6e89efd699116bd033beb5f152b59e0fb2840432d496eed71465b50a" }, "downloads": -1, "filename": "django_jsonfield_compat-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b95b0da804b5ed677f5a73014817598d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5289, "upload_time": "2017-01-18T22:16:00", "url": "https://files.pythonhosted.org/packages/d9/b7/780353a02c9c0c93fbc60b7797591c788c00f638b60cb1d76ad94e15ab28/django_jsonfield_compat-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85faf787c2f17bd96d13f88068589825", "sha256": "fd0045bfed8014bea4804da2f02dd5eea4bc0e42b607c63f98731dcfb8995c44" }, "downloads": -1, "filename": "django-jsonfield-compat-0.3.0.tar.gz", "has_sig": false, "md5_digest": "85faf787c2f17bd96d13f88068589825", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2893, "upload_time": "2017-01-18T22:15:59", "url": "https://files.pythonhosted.org/packages/36/9b/68a8ba28392ffac796c2ad2bf5d251f91c82a716bfb9cfb3f3f869adac72/django-jsonfield-compat-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "71f9ed3a06af8f75a37811e1b3a542a2", "sha256": "f2e517b3bc011e033775d28442853ce01240970e25216143c624abb27634d200" }, "downloads": -1, "filename": "django_jsonfield_compat-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "71f9ed3a06af8f75a37811e1b3a542a2", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6431, "upload_time": "2017-03-25T19:38:28", "url": "https://files.pythonhosted.org/packages/78/45/a566d60c2fe0f28f9c3ea8822e08959e45dd23fb7efd40523e526d4f37f1/django_jsonfield_compat-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7f5c3e1b0189d66cd7e6bb5bfba5883", "sha256": "ea276d23fe45eb7859dab050465e7792a1385f9155712d7a6c56f85cf97d00df" }, "downloads": -1, "filename": "django-jsonfield-compat-0.4.0.tar.gz", "has_sig": false, "md5_digest": "c7f5c3e1b0189d66cd7e6bb5bfba5883", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3140, "upload_time": "2017-03-25T19:38:27", "url": "https://files.pythonhosted.org/packages/d9/23/5d4c8a6d72faa948607c2b105aa5b6c0debc9c5a9c8c201533a1d69f7e73/django-jsonfield-compat-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "33fafa03569e83c2955f2b1f079598e3", "sha256": "38e4356389b821751ad7ec40422118718e2cc245192132417eabdc5eedd1dbd3" }, "downloads": -1, "filename": "django_jsonfield_compat-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "33fafa03569e83c2955f2b1f079598e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6434, "upload_time": "2017-03-25T19:46:34", "url": "https://files.pythonhosted.org/packages/f0/2f/b08e21a30bff5c21f7c5847ac38b5e30c5dac1f798f6766baef1780559b3/django_jsonfield_compat-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7bb130ced3bdf6504be7f37a20d906d4", "sha256": "f4357fdc9fc481c94178d96335eb67053b744022d6c057852c61ae26bd460c99" }, "downloads": -1, "filename": "django-jsonfield-compat-0.4.1.tar.gz", "has_sig": false, "md5_digest": "7bb130ced3bdf6504be7f37a20d906d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3141, "upload_time": "2017-03-25T19:46:36", "url": "https://files.pythonhosted.org/packages/b2/e0/560adbdd6ee13e9734d81d986688ab37150a77e186ab2e235ed4acea2ec8/django-jsonfield-compat-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "7031a087a653c63a45e051d82dc98b84", "sha256": "a7ef14f1423bedcd0915719c54ba5c300037d2f12cbb9c737f5fb430e8257684" }, "downloads": -1, "filename": "django_jsonfield_compat-0.4.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7031a087a653c63a45e051d82dc98b84", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6666, "upload_time": "2017-03-25T20:37:58", "url": "https://files.pythonhosted.org/packages/31/d2/8df7f6bbdd24a0b63b87670ab5895b4ce4ec193061d09778bdf52e16d74d/django_jsonfield_compat-0.4.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6698c000da20724be201a245fa748dea", "sha256": "e1dc75ff4d3b95e2f4c43324c582f6505b5e214d0c35cb6ed789648d6393bc24" }, "downloads": -1, "filename": "django-jsonfield-compat-0.4.2.tar.gz", "has_sig": false, "md5_digest": "6698c000da20724be201a245fa748dea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3347, "upload_time": "2017-03-25T20:38:00", "url": "https://files.pythonhosted.org/packages/e8/c0/804f56be118e31fc1ac1365c73f2c300a0edfc49e7599f3861339f65044a/django-jsonfield-compat-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "27ab05bc98eb7b46e57f91733fb79731", "sha256": "53c58065e35ca2902320aaf02c6b818a26c01c41ff7113904645513a26bee3da" }, "downloads": -1, "filename": "django_jsonfield_compat-0.4.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "27ab05bc98eb7b46e57f91733fb79731", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6735, "upload_time": "2017-03-25T21:19:58", "url": "https://files.pythonhosted.org/packages/1a/91/6f093cda77e761ff4c94ba306399c18803ef183a6a2750973f7f00bfd9f3/django_jsonfield_compat-0.4.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ca0f1727327fc202de4713a521e873e", "sha256": "41a3227ba631fe508ad61065017f5896fcd2d990dab6d63c00a4b7d42d784b44" }, "downloads": -1, "filename": "django-jsonfield-compat-0.4.3.tar.gz", "has_sig": false, "md5_digest": "2ca0f1727327fc202de4713a521e873e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3423, "upload_time": "2017-03-25T21:20:00", "url": "https://files.pythonhosted.org/packages/c4/6d/9c350a81e265d40d6b1adeaa74a6aaa00711da589922ba068c282fb26993/django-jsonfield-compat-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "440c5e2be5e778bc31891d820dbc3090", "sha256": "e2b1cd7dfef7633c8befb9c85fa764d344377512c8fdaf65ded4827392410a1d" }, "downloads": -1, "filename": "django_jsonfield_compat-0.4.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "440c5e2be5e778bc31891d820dbc3090", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6743, "upload_time": "2017-03-25T21:35:25", "url": "https://files.pythonhosted.org/packages/55/e8/ac686ec7499f0675fdcf2c9a5ad26a4bd02c23303f5bbd94028dd5e37b0b/django_jsonfield_compat-0.4.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e401361e9ee08c3c30e80b379a72e5c", "sha256": "0182d2e9db886abc2bf30958e4953f72b6f0e20336524755641bc3968899cd5b" }, "downloads": -1, "filename": "django-jsonfield-compat-0.4.4.tar.gz", "has_sig": false, "md5_digest": "5e401361e9ee08c3c30e80b379a72e5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3426, "upload_time": "2017-03-25T21:35:27", "url": "https://files.pythonhosted.org/packages/5c/b3/fd67cc1a09322e715322bfaf219c0693b5e0522659074ada49cf1c91d692/django-jsonfield-compat-0.4.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "440c5e2be5e778bc31891d820dbc3090", "sha256": "e2b1cd7dfef7633c8befb9c85fa764d344377512c8fdaf65ded4827392410a1d" }, "downloads": -1, "filename": "django_jsonfield_compat-0.4.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "440c5e2be5e778bc31891d820dbc3090", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6743, "upload_time": "2017-03-25T21:35:25", "url": "https://files.pythonhosted.org/packages/55/e8/ac686ec7499f0675fdcf2c9a5ad26a4bd02c23303f5bbd94028dd5e37b0b/django_jsonfield_compat-0.4.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e401361e9ee08c3c30e80b379a72e5c", "sha256": "0182d2e9db886abc2bf30958e4953f72b6f0e20336524755641bc3968899cd5b" }, "downloads": -1, "filename": "django-jsonfield-compat-0.4.4.tar.gz", "has_sig": false, "md5_digest": "5e401361e9ee08c3c30e80b379a72e5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3426, "upload_time": "2017-03-25T21:35:27", "url": "https://files.pythonhosted.org/packages/5c/b3/fd67cc1a09322e715322bfaf219c0693b5e0522659074ada49cf1c91d692/django-jsonfield-compat-0.4.4.tar.gz" } ] }