diff --git a/django_forms_as_jsonschema/jsonschema.py b/django_forms_as_jsonschema/jsonschema.py index 966c0432078f5f96dc198320a7c79f9023cf42e6..1caf472098d09b52425026d4bbe570a8c8ddf5e5 100644 --- a/django_forms_as_jsonschema/jsonschema.py +++ b/django_forms_as_jsonschema/jsonschema.py @@ -71,6 +71,7 @@ class JSONSchema: "type": "string", "title": str(field.label), "description": str(field.help_text), + "readOnly": field.disabled } # string, number, integer, boolean.