{ "info": { "author": "Jos\u00e9 Manuel Rivas", "author_email": "jmrivas86@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.11", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "=============================\ndjango-json-widget\n=============================\n\n.. image:: https://badge.fury.io/py/django-json-widget.svg\n :target: https://badge.fury.io/py/django-json-widget\n\n.. image:: https://travis-ci.org/jmrivas86/django-json-widget.svg?branch=master\n :target: https://travis-ci.org/jmrivas86/django-json-widget\n\n.. image:: https://codecov.io/gh/jmrivas86/django-json-widget/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/jmrivas86/django-json-widget\n\nAn alternative widget that makes it easy to edit the new Django's field JSONField (PostgreSQL specific model fields)\n\n\nQuickstart\n----------\n\nInstall django-json-widget::\n\n pip install django-json-widget\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'django_json_widget',\n ...\n )\n\nAdd the widget in your admin.py:\n\n.. code-block:: python\n\n from django.contrib import admin\n from django.contrib.postgres import fields\n from django_json_widget.widgets import JSONEditorWidget\n from .models import YourModel\n\n\n @admin.register(YourModel)\n class YourModelAdmin(admin.ModelAdmin):\n formfield_overrides = {\n fields.JSONField: {'widget': JSONEditorWidget},\n }\n\nYou can also add the widget in your forms.py and choose the default mode:\n\n.. code-block:: python\n\n from django import forms\n from django_json_widget.widgets import JSONEditorWidget\n from .models import YourModel\n\n\n class YourForm(forms.ModelForm):\n class Meta:\n model = YourModel\n\n fields = ('jsonfield',)\n\n widgets = {\n # choose one mode from ['text', 'code', 'tree', 'form', 'view']\n 'jsonfield': JSONEditorWidget(mode='code')\n }\n\nJSONEditorWidget widget\n-----------------------\n\nBefore:\n\n.. image:: https://raw.githubusercontent.com/jmrivas86/django-json-widget/master/imgs/jsonfield_0.png\n\nAfter:\n\n.. image:: https://raw.githubusercontent.com/jmrivas86/django-json-widget/master/imgs/jsonfield_1.png\n\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2017-05-10)\n++++++++++++++++++\n\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jmrivas86/django-json-widget", "keywords": "django-json-widget", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-json-widget", "package_url": "https://pypi.org/project/django-json-widget/", "platform": "", "project_url": "https://pypi.org/project/django-json-widget/", "project_urls": { "Homepage": "https://github.com/jmrivas86/django-json-widget" }, "release_url": "https://pypi.org/project/django-json-widget/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Django json widget is an alternative widget that makes it easy to edit the jsonfield field of django.", "version": "0.2.0" }, "last_serial": 4429121, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "82ab4731cac7d501b71e3e07b73487c9", "sha256": "e6e88fcbac52aafb06f814cd287e124c67321884e4c2e8d83105d18600de2e4f" }, "downloads": -1, "filename": "django-json-widget-0.1.0.tar.gz", "has_sig": false, "md5_digest": "82ab4731cac7d501b71e3e07b73487c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 554594, "upload_time": "2017-05-16T09:02:25", "url": "https://files.pythonhosted.org/packages/be/ff/de64671fca932ac898064214d871048195f962806642944af46fb3efe73f/django-json-widget-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "36393eb379ac3273f062df537278d2cc", "sha256": "9cffd2cd3bb67cb0e971585ac6dd2752215ca29129a5fcb39943b7877eeaeb5f" }, "downloads": -1, "filename": "django_json_widget-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "36393eb379ac3273f062df537278d2cc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 190809, "upload_time": "2018-02-01T00:57:11", "url": "https://files.pythonhosted.org/packages/d5/21/983f11ee045d6cfec258e9151a2bba6000ff741aaa3ed50b19bdf85576db/django_json_widget-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d48a4032d8613b67418a4d3ba0d27319", "sha256": "8883a95d37b5a94322589fd4bbb4600890ac6fb91427b9f8f7b23c78d3f5a0f4" }, "downloads": -1, "filename": "django-json-widget-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d48a4032d8613b67418a4d3ba0d27319", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191005, "upload_time": "2018-02-01T00:57:05", "url": "https://files.pythonhosted.org/packages/43/2a/0ca97d2454777af4ce91a119122491a5829884bd39762d3cd2c7f5f9826e/django-json-widget-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5dd8ba0aa3b993cef447425b6a7ee166", "sha256": "eeefe79863119e1507b1c208dfe27f0ce2fbf7b378c5022b8637b0a362c23202" }, "downloads": -1, "filename": "django_json_widget-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5dd8ba0aa3b993cef447425b6a7ee166", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 190898, "upload_time": "2018-10-29T21:03:30", "url": "https://files.pythonhosted.org/packages/79/5a/c259286ff52cfabad5f3b0e42e5d4f18ffe99ec3994ff91e7cb41891c2c2/django_json_widget-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5a55f78a693441c7f3d481974ca9954", "sha256": "0d995fbfd3169709fd43c190eb2fb2e7dbd84c41da7ba8c0db33fc399881264e" }, "downloads": -1, "filename": "django-json-widget-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c5a55f78a693441c7f3d481974ca9954", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191369, "upload_time": "2018-10-29T21:03:32", "url": "https://files.pythonhosted.org/packages/1e/32/5790452598c0e4e27998a8a0fb2ed9f0ee3d2d90acd68b1a4dcd6ef49af6/django-json-widget-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5dd8ba0aa3b993cef447425b6a7ee166", "sha256": "eeefe79863119e1507b1c208dfe27f0ce2fbf7b378c5022b8637b0a362c23202" }, "downloads": -1, "filename": "django_json_widget-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5dd8ba0aa3b993cef447425b6a7ee166", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 190898, "upload_time": "2018-10-29T21:03:30", "url": "https://files.pythonhosted.org/packages/79/5a/c259286ff52cfabad5f3b0e42e5d4f18ffe99ec3994ff91e7cb41891c2c2/django_json_widget-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5a55f78a693441c7f3d481974ca9954", "sha256": "0d995fbfd3169709fd43c190eb2fb2e7dbd84c41da7ba8c0db33fc399881264e" }, "downloads": -1, "filename": "django-json-widget-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c5a55f78a693441c7f3d481974ca9954", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191369, "upload_time": "2018-10-29T21:03:32", "url": "https://files.pythonhosted.org/packages/1e/32/5790452598c0e4e27998a8a0fb2ed9f0ee3d2d90acd68b1a4dcd6ef49af6/django-json-widget-0.2.0.tar.gz" } ] }