Wagtail JSON Widget
JSON editing for Wagtail Admin with josdejong / jsoneditor. Provides widgets for Page and StreamField.
Installation
Install from PyPI:
pip install wagtail-json-widget
Then add the following to your project's INSTALLED_APPS.
'wagtail_json_widget',
Usage
As a field:
from django.db import models
from django import forms
from wagtail.admin.panels import FieldPanel
from wagtail.admin.forms import WagtailAdminPageForm
from wagtail.core.models import Page
from .blocks import MyStreamBlock
from wagtail_json_widget.widgets import JSONEditorWidget
class MyPageForm(WagtailAdminPageForm):
myjson = forms.JSONField(widget=JSONEditorWidget, required=False)
class MyPage(Page):
myjson = models.JSONField(null=True, blank=True)
content_panels = Page.content_panels + [
FieldPanel('myjson'),
]
base_form_class = MyPageForm
As a StreamField block:
from wagtail import blocks
from wagtail_json_widget.blocks import JSONBlock
class MyBlock(blocks.StructBlock):
my_json_block = JSONBlock(default='{}')
...
Metadata
Release files for wagtail-json-widget 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail_json_widget-0.0.9.tar.gz | 255.0 kB | Without provenance | Details for wagtail_json_widget-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_json_widget-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for wagtail_json_widget-0.0.9-py3-none-any.whl |
Total release size: 512.8 kB
Release files / wagtail_json_widget-0.0.9.tar.gz
| Download URL | wagtail_json_widget-0.0.9.tar.gz |
|---|---|
| Size | 255.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d80976cc7d9d0754b06a0779ff10ad76b89b38570f597b2231cb1ea61a9359c
|
|
BLAKE2b-256 checksum How to use checksums |
f103bde22e3ef383d485195e2fa2d82983c8a945da0a34a352a39cd01c4c9645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Release files / wagtail_json_widget-0.0.9-py3-none-any.whl
| Download URL | wagtail_json_widget-0.0.9-py3-none-any.whl |
|---|---|
| Size | 257.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1bbcb97fcc0a63fac2ba2091bc33fb1383dcdda163130447319ce4b7da493e05
|
|
BLAKE2b-256 checksum How to use checksums |
3400f0cd6a6c6eae99f86f9d60113bc574d76921244e59969a739d1234a05e78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Security for wagtail-json-widget 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.