Django JSON Editor Field
The Django JSON Editor field enhances Djangos JSON Field add adds a json-editor on top. You can use a JSON Schema to describe a form for the underlying JSON field. The input is then stored as JSON.
Usage
Add django_json_editor_field to your INSTALLED_APPS.
Use the field in your model:
from django_json_editor_field.fields import JSONEditorField
schema = {
"title": "My JSON Array of Objects",
"type": "array",
"format": "table",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
},
"start": {
"type": "string",
"format": "date",
},
"end": {
"type": "string",
"format": "date",
}
}
}
}
data = JSONEditorField(schema=schema)
json-editor has some options. You can set
them using the options argument to the JSONEditorField.
options = {
"theme": "bootstrap4",
"disable_collapse": True,
}
schema = {
...
}
data = JSONEditorField(schema=schema, options=options)
Internally, the schema gets added to the schema attribute of the options and only the options object gets passed on
to the json-editor. This means you can also define the schema as part of the options directly.
Metadata
Release files for django-json-editor-field 0.4.2
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 |
|---|---|---|---|---|
| django_json_editor_field-0.4.2.tar.gz | 4.4 kB | With provenance | Details for django_json_editor_field-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_json_editor_field-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for django_json_editor_field-0.4.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / django_json_editor_field-0.4.2.tar.gz
| Download URL | django_json_editor_field-0.4.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fc03d649fc652b81a461ba84486113373e4a79b9cec7897e42c4ba0d23cadc3
|
|
BLAKE2b-256 checksum How to use checksums |
8dc8ed0f8d83eacb2dcdffb1b459da511eb3d52e26737291a236f5d5f892ff7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 6, 2025.
Transparency logRelease files / django_json_editor_field-0.4.2-py3-none-any.whl
| Download URL | django_json_editor_field-0.4.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6b4c39b682338baaf0c7cec6fb661b049a82bef195d30745677045606d9226d
|
|
BLAKE2b-256 checksum How to use checksums |
6eb4580de3389bb9e31abc89e4ef22f128316c216e3abb5014176c8aa9f099e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 6, 2025.
Transparency logSecurity for django-json-editor-field 0.4.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for django_json_editor_field-0.4.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 6, 2025.
Transparency logA 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.